33 writes to Response
Azure.Core (1)
Azure.Core.TestFramework (4)
Azure.Core.Tests (9)
Azure.Data.Tables (1)
Azure.Storage.Blobs.Batch (1)
Azure.Storage.Blobs.Batch.Samples.Tests (1)
Azure.Storage.Blobs.Batch.Tests (1)
Azure.Storage.Blobs.ChangeFeed.Samples.Tests (1)
Azure.Storage.Blobs.ChangeFeed.Tests (1)
Azure.Storage.Blobs.Samples.Tests (1)
Azure.Storage.Blobs.Tests (1)
Azure.Storage.Common.Samples.Tests (1)
Azure.Storage.Common.Tests (4)
Azure.Storage.Files.DataLake.Samples.Tests (1)
Azure.Storage.Files.DataLake.Tests (1)
Azure.Storage.Files.Shares.Samples.Tests (1)
Azure.Storage.Files.Shares.Tests (1)
Azure.Storage.Queues.Samples.Tests (1)
Azure.Storage.Queues.Tests (1)
23469 references to Response
Azure.AI.AnomalyDetector (88)
Generated\AnomalyDetectorRestClient.cs (86)
74switch (message.Response.Status)
79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
81return Response.FromValue(value, message.Response);
84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
146switch (message.Response.Status)
151using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
153return Response.FromValue(value, message.Response);
156throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173switch (message.Response.Status)
178using var document = JsonDocument.Parse(message.Response.ContentStream);
180return Response.FromValue(value, message.Response);
183throw _clientDiagnostics.CreateRequestFailedException(message.Response);
218switch (message.Response.Status)
223using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
225return Response.FromValue(value, message.Response);
228throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
250using var document = JsonDocument.Parse(message.Response.ContentStream);
252return Response.FromValue(value, message.Response);
255throw _clientDiagnostics.CreateRequestFailedException(message.Response);
290var headers = new AnomalyDetectorTrainMultivariateModelHeaders(message.Response);
291switch (message.Response.Status)
294return ResponseWithHeaders.FromValue(headers, message.Response);
296throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
313var headers = new AnomalyDetectorTrainMultivariateModelHeaders(message.Response);
314switch (message.Response.Status)
317return ResponseWithHeaders.FromValue(headers, message.Response);
319throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
352return Response.FromValue(value, message.Response);
355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
366switch (message.Response.Status)
371using var document = JsonDocument.Parse(message.Response.ContentStream);
373return Response.FromValue(value, message.Response);
376throw _clientDiagnostics.CreateRequestFailedException(message.Response);
402switch (message.Response.Status)
405return message.Response;
407throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
418switch (message.Response.Status)
421return message.Response;
423throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461var headers = new AnomalyDetectorDetectAnomalyHeaders(message.Response);
462switch (message.Response.Status)
465return ResponseWithHeaders.FromValue(headers, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
485var headers = new AnomalyDetectorDetectAnomalyHeaders(message.Response);
486switch (message.Response.Status)
489return ResponseWithHeaders.FromValue(headers, message.Response);
491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
517switch (message.Response.Status)
522using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
524return Response.FromValue(value, message.Response);
527throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
538switch (message.Response.Status)
543using var document = JsonDocument.Parse(message.Response.ContentStream);
545return Response.FromValue(value, message.Response);
548throw _clientDiagnostics.CreateRequestFailedException(message.Response);
575var headers = new AnomalyDetectorExportModelHeaders(message.Response);
576switch (message.Response.Status)
581return ResponseWithHeaders.FromValue(value, headers, message.Response);
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
595var headers = new AnomalyDetectorExportModelHeaders(message.Response);
596switch (message.Response.Status)
601return ResponseWithHeaders.FromValue(value, headers, message.Response);
604throw _clientDiagnostics.CreateRequestFailedException(message.Response);
638switch (message.Response.Status)
643using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
645return Response.FromValue(value, message.Response);
648throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
660switch (message.Response.Status)
665using var document = JsonDocument.Parse(message.Response.ContentStream);
667return Response.FromValue(value, message.Response);
670throw _clientDiagnostics.CreateRequestFailedException(message.Response);
703switch (message.Response.Status)
708using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
710return Response.FromValue(value, message.Response);
713throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
732switch (message.Response.Status)
737using var document = JsonDocument.Parse(message.Response.ContentStream);
739return Response.FromValue(value, message.Response);
742throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.AI.FormRecognizer (226)
Azure.AI.MetricsAdvisor (550)
Generated\MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2RestClient.cs (548)
62switch (message.Response.Status)
67using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
69return Response.FromValue(value, message.Response);
72throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
82switch (message.Response.Status)
87using var document = JsonDocument.Parse(message.Response.ContentStream);
89return Response.FromValue(value, message.Response);
92throw _clientDiagnostics.CreateRequestFailedException(message.Response);
118switch (message.Response.Status)
123using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
125return Response.FromValue(value, message.Response);
128throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
186switch (message.Response.Status)
191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
193return Response.FromValue(value, message.Response);
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
250switch (message.Response.Status)
253return message.Response;
255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
266switch (message.Response.Status)
269return message.Response;
271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(message.Response);
307switch (message.Response.Status)
310return ResponseWithHeaders.FromValue(headers, message.Response);
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(message.Response);
330switch (message.Response.Status)
333return ResponseWithHeaders.FromValue(headers, message.Response);
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
383switch (message.Response.Status)
388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
390return Response.FromValue(value, message.Response);
393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
413switch (message.Response.Status)
418using var document = JsonDocument.Parse(message.Response.ContentStream);
420return Response.FromValue(value, message.Response);
423throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
476return Response.FromValue(value, message.Response);
479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
499switch (message.Response.Status)
504using var document = JsonDocument.Parse(message.Response.ContentStream);
506return Response.FromValue(value, message.Response);
509throw _clientDiagnostics.CreateRequestFailedException(message.Response);
555switch (message.Response.Status)
560using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
562return Response.FromValue(value, message.Response);
565throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
585switch (message.Response.Status)
590using var document = JsonDocument.Parse(message.Response.ContentStream);
592return Response.FromValue(value, message.Response);
595throw _clientDiagnostics.CreateRequestFailedException(message.Response);
621switch (message.Response.Status)
626using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
628return Response.FromValue(value, message.Response);
631throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
642switch (message.Response.Status)
647using var document = JsonDocument.Parse(message.Response.ContentStream);
649return Response.FromValue(value, message.Response);
652throw _clientDiagnostics.CreateRequestFailedException(message.Response);
689switch (message.Response.Status)
694using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
696return Response.FromValue(value, message.Response);
699throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
717switch (message.Response.Status)
722using var document = JsonDocument.Parse(message.Response.ContentStream);
724return Response.FromValue(value, message.Response);
727throw _clientDiagnostics.CreateRequestFailedException(message.Response);
753switch (message.Response.Status)
756return message.Response;
758throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
769switch (message.Response.Status)
772return message.Response;
774throw _clientDiagnostics.CreateRequestFailedException(message.Response);
809var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(message.Response);
810switch (message.Response.Status)
813return ResponseWithHeaders.FromValue(headers, message.Response);
815throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
832var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(message.Response);
833switch (message.Response.Status)
836return ResponseWithHeaders.FromValue(headers, message.Response);
838throw _clientDiagnostics.CreateRequestFailedException(message.Response);
875switch (message.Response.Status)
880using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
882return Response.FromValue(value, message.Response);
885throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
898switch (message.Response.Status)
903using var document = JsonDocument.Parse(message.Response.ContentStream);
905return Response.FromValue(value, message.Response);
908throw _clientDiagnostics.CreateRequestFailedException(message.Response);
946switch (message.Response.Status)
951using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
953return Response.FromValue(value, message.Response);
956throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
974switch (message.Response.Status)
979using var document = JsonDocument.Parse(message.Response.ContentStream);
981return Response.FromValue(value, message.Response);
984throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1032switch (message.Response.Status)
1037using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1039return Response.FromValue(value, message.Response);
1042throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1062switch (message.Response.Status)
1067using var document = JsonDocument.Parse(message.Response.ContentStream);
1069return Response.FromValue(value, message.Response);
1072throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1120switch (message.Response.Status)
1125using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1127return Response.FromValue(value, message.Response);
1130throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1150switch (message.Response.Status)
1155using var document = JsonDocument.Parse(message.Response.ContentStream);
1157return Response.FromValue(value, message.Response);
1160throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1203switch (message.Response.Status)
1208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1210return Response.FromValue(value, message.Response);
1213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1232switch (message.Response.Status)
1237using var document = JsonDocument.Parse(message.Response.ContentStream);
1239return Response.FromValue(value, message.Response);
1242throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1279switch (message.Response.Status)
1284using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1286return Response.FromValue(value, message.Response);
1289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1302switch (message.Response.Status)
1307using var document = JsonDocument.Parse(message.Response.ContentStream);
1309return Response.FromValue(value, message.Response);
1312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1348switch (message.Response.Status)
1353using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1355return Response.FromValue(value, message.Response);
1358throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1376switch (message.Response.Status)
1381using var document = JsonDocument.Parse(message.Response.ContentStream);
1383return Response.FromValue(value, message.Response);
1386throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1421var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateCredentialHeaders(message.Response);
1422switch (message.Response.Status)
1425return ResponseWithHeaders.FromValue(headers, message.Response);
1427throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1444var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateCredentialHeaders(message.Response);
1445switch (message.Response.Status)
1448return ResponseWithHeaders.FromValue(headers, message.Response);
1450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1484switch (message.Response.Status)
1489using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1491return Response.FromValue(value, message.Response);
1494throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1506switch (message.Response.Status)
1511using var document = JsonDocument.Parse(message.Response.ContentStream);
1513return Response.FromValue(value, message.Response);
1516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1553switch (message.Response.Status)
1558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1560return Response.FromValue(value, message.Response);
1563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1581switch (message.Response.Status)
1586using var document = JsonDocument.Parse(message.Response.ContentStream);
1588return Response.FromValue(value, message.Response);
1591throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1617switch (message.Response.Status)
1620return message.Response;
1622throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1633switch (message.Response.Status)
1636return message.Response;
1638throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1664switch (message.Response.Status)
1669using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1671return Response.FromValue(value, message.Response);
1674throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1685switch (message.Response.Status)
1690using var document = JsonDocument.Parse(message.Response.ContentStream);
1692return Response.FromValue(value, message.Response);
1695throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1754switch (message.Response.Status)
1759using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1761return Response.FromValue(value, message.Response);
1764throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1781switch (message.Response.Status)
1786using var document = JsonDocument.Parse(message.Response.ContentStream);
1788return Response.FromValue(value, message.Response);
1791throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1826var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response);
1827switch (message.Response.Status)
1830return ResponseWithHeaders.FromValue(headers, message.Response);
1832throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1849var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response);
1850switch (message.Response.Status)
1853return ResponseWithHeaders.FromValue(headers, message.Response);
1855throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1881switch (message.Response.Status)
1886using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1888return Response.FromValue(value, message.Response);
1891throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1902switch (message.Response.Status)
1907using var document = JsonDocument.Parse(message.Response.ContentStream);
1909return Response.FromValue(value, message.Response);
1912throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1949switch (message.Response.Status)
1954using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1956return Response.FromValue(value, message.Response);
1959throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1977switch (message.Response.Status)
1982using var document = JsonDocument.Parse(message.Response.ContentStream);
1984return Response.FromValue(value, message.Response);
1987throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2013switch (message.Response.Status)
2016return message.Response;
2018throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2029switch (message.Response.Status)
2032return message.Response;
2034throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2060switch (message.Response.Status)
2065using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2067return Response.FromValue(value, message.Response);
2070throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2081switch (message.Response.Status)
2086using var document = JsonDocument.Parse(message.Response.ContentStream);
2088return Response.FromValue(value, message.Response);
2091throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2136switch (message.Response.Status)
2141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2143return Response.FromValue(value, message.Response);
2146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2165switch (message.Response.Status)
2170using var document = JsonDocument.Parse(message.Response.ContentStream);
2172return Response.FromValue(value, message.Response);
2175throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2210var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response);
2211switch (message.Response.Status)
2214return ResponseWithHeaders.FromValue(headers, message.Response);
2216throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2233var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response);
2234switch (message.Response.Status)
2237return ResponseWithHeaders.FromValue(headers, message.Response);
2239throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2278switch (message.Response.Status)
2283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2285return Response.FromValue(value, message.Response);
2288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2301switch (message.Response.Status)
2306using var document = JsonDocument.Parse(message.Response.ContentStream);
2308return Response.FromValue(value, message.Response);
2311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2346var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response);
2347switch (message.Response.Status)
2350return ResponseWithHeaders.FromValue(headers, message.Response);
2352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2369var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response);
2370switch (message.Response.Status)
2373return ResponseWithHeaders.FromValue(headers, message.Response);
2375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2401switch (message.Response.Status)
2406using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2408return Response.FromValue(value, message.Response);
2411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2422switch (message.Response.Status)
2427using var document = JsonDocument.Parse(message.Response.ContentStream);
2429return Response.FromValue(value, message.Response);
2432throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2469switch (message.Response.Status)
2474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2476return Response.FromValue(value, message.Response);
2479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2497switch (message.Response.Status)
2502using var document = JsonDocument.Parse(message.Response.ContentStream);
2504return Response.FromValue(value, message.Response);
2507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2533switch (message.Response.Status)
2536return message.Response;
2538throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2549switch (message.Response.Status)
2552return message.Response;
2554throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2602switch (message.Response.Status)
2607using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2609return Response.FromValue(value, message.Response);
2612throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2632switch (message.Response.Status)
2637using var document = JsonDocument.Parse(message.Response.ContentStream);
2639return Response.FromValue(value, message.Response);
2642throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2680switch (message.Response.Status)
2683return message.Response;
2685throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2703switch (message.Response.Status)
2706return message.Response;
2708throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2735switch (message.Response.Status)
2740using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2742return Response.FromValue(value, message.Response);
2745throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2756switch (message.Response.Status)
2761using var document = JsonDocument.Parse(message.Response.ContentStream);
2763return Response.FromValue(value, message.Response);
2766throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2804switch (message.Response.Status)
2809using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2811return Response.FromValue(value, message.Response);
2814throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2832switch (message.Response.Status)
2837using var document = JsonDocument.Parse(message.Response.ContentStream);
2839return Response.FromValue(value, message.Response);
2842throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2890switch (message.Response.Status)
2895using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2897return Response.FromValue(value, message.Response);
2900throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2920switch (message.Response.Status)
2925using var document = JsonDocument.Parse(message.Response.ContentStream);
2927return Response.FromValue(value, message.Response);
2930throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2978switch (message.Response.Status)
2983using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2985return Response.FromValue(value, message.Response);
2988throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3008switch (message.Response.Status)
3013using var document = JsonDocument.Parse(message.Response.ContentStream);
3015return Response.FromValue(value, message.Response);
3018throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3055switch (message.Response.Status)
3060using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3062return Response.FromValue(value, message.Response);
3065throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3078switch (message.Response.Status)
3083using var document = JsonDocument.Parse(message.Response.ContentStream);
3085return Response.FromValue(value, message.Response);
3088throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3136switch (message.Response.Status)
3141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3143return Response.FromValue(value, message.Response);
3146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3166switch (message.Response.Status)
3171using var document = JsonDocument.Parse(message.Response.ContentStream);
3173return Response.FromValue(value, message.Response);
3176throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3217switch (message.Response.Status)
3222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3224return Response.FromValue(value, message.Response);
3227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3249switch (message.Response.Status)
3254using var document = JsonDocument.Parse(message.Response.ContentStream);
3256return Response.FromValue(value, message.Response);
3259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3300switch (message.Response.Status)
3305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3307return Response.FromValue(value, message.Response);
3310throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3332switch (message.Response.Status)
3337using var document = JsonDocument.Parse(message.Response.ContentStream);
3339return Response.FromValue(value, message.Response);
3342throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3383switch (message.Response.Status)
3388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3390return Response.FromValue(value, message.Response);
3393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3415switch (message.Response.Status)
3420using var document = JsonDocument.Parse(message.Response.ContentStream);
3422return Response.FromValue(value, message.Response);
3425throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3466switch (message.Response.Status)
3471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3473return Response.FromValue(value, message.Response);
3476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3498switch (message.Response.Status)
3503using var document = JsonDocument.Parse(message.Response.ContentStream);
3505return Response.FromValue(value, message.Response);
3508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3549switch (message.Response.Status)
3554using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3556return Response.FromValue(value, message.Response);
3559throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3581switch (message.Response.Status)
3586using var document = JsonDocument.Parse(message.Response.ContentStream);
3588return Response.FromValue(value, message.Response);
3591throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3632switch (message.Response.Status)
3637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3639return Response.FromValue(value, message.Response);
3642throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3664switch (message.Response.Status)
3669using var document = JsonDocument.Parse(message.Response.ContentStream);
3671return Response.FromValue(value, message.Response);
3674throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3715switch (message.Response.Status)
3720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3722return Response.FromValue(value, message.Response);
3725throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3747switch (message.Response.Status)
3752using var document = JsonDocument.Parse(message.Response.ContentStream);
3754return Response.FromValue(value, message.Response);
3757throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3798switch (message.Response.Status)
3803using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3805return Response.FromValue(value, message.Response);
3808throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3830switch (message.Response.Status)
3835using var document = JsonDocument.Parse(message.Response.ContentStream);
3837return Response.FromValue(value, message.Response);
3840throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3879switch (message.Response.Status)
3884using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3886return Response.FromValue(value, message.Response);
3889throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3914switch (message.Response.Status)
3919using var document = JsonDocument.Parse(message.Response.ContentStream);
3921return Response.FromValue(value, message.Response);
3924throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3963switch (message.Response.Status)
3968using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3970return Response.FromValue(value, message.Response);
3973throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3998switch (message.Response.Status)
4003using var document = JsonDocument.Parse(message.Response.ContentStream);
4005return Response.FromValue(value, message.Response);
4008throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4047switch (message.Response.Status)
4052using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4054return Response.FromValue(value, message.Response);
4057throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4082switch (message.Response.Status)
4087using var document = JsonDocument.Parse(message.Response.ContentStream);
4089return Response.FromValue(value, message.Response);
4092throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4126switch (message.Response.Status)
4131using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4133return Response.FromValue(value, message.Response);
4136throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4156switch (message.Response.Status)
4161using var document = JsonDocument.Parse(message.Response.ContentStream);
4163return Response.FromValue(value, message.Response);
4166throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4205switch (message.Response.Status)
4210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4212return Response.FromValue(value, message.Response);
4215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4240switch (message.Response.Status)
4245using var document = JsonDocument.Parse(message.Response.ContentStream);
4247return Response.FromValue(value, message.Response);
4250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4289switch (message.Response.Status)
4294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4296return Response.FromValue(value, message.Response);
4299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4324switch (message.Response.Status)
4329using var document = JsonDocument.Parse(message.Response.ContentStream);
4331return Response.FromValue(value, message.Response);
4334throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4372switch (message.Response.Status)
4377using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4379return Response.FromValue(value, message.Response);
4382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4406switch (message.Response.Status)
4411using var document = JsonDocument.Parse(message.Response.ContentStream);
4413return Response.FromValue(value, message.Response);
4416throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4450switch (message.Response.Status)
4455using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4457return Response.FromValue(value, message.Response);
4460throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4480switch (message.Response.Status)
4485using var document = JsonDocument.Parse(message.Response.ContentStream);
4487return Response.FromValue(value, message.Response);
4490throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4523switch (message.Response.Status)
4528using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4530return Response.FromValue(value, message.Response);
4533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4552switch (message.Response.Status)
4557using var document = JsonDocument.Parse(message.Response.ContentStream);
4559return Response.FromValue(value, message.Response);
4562throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4600switch (message.Response.Status)
4605using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4607return Response.FromValue(value, message.Response);
4610throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4634switch (message.Response.Status)
4639using var document = JsonDocument.Parse(message.Response.ContentStream);
4641return Response.FromValue(value, message.Response);
4644throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4682switch (message.Response.Status)
4687using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4689return Response.FromValue(value, message.Response);
4692throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4716switch (message.Response.Status)
4721using var document = JsonDocument.Parse(message.Response.ContentStream);
4723return Response.FromValue(value, message.Response);
4726throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4760switch (message.Response.Status)
4765using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4767return Response.FromValue(value, message.Response);
4770throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4790switch (message.Response.Status)
4795using var document = JsonDocument.Parse(message.Response.ContentStream);
4797return Response.FromValue(value, message.Response);
4800throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4839switch (message.Response.Status)
4844using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4846return Response.FromValue(value, message.Response);
4849throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4874switch (message.Response.Status)
4879using var document = JsonDocument.Parse(message.Response.ContentStream);
4881return Response.FromValue(value, message.Response);
4884throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4923switch (message.Response.Status)
4928using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4930return Response.FromValue(value, message.Response);
4933throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4958switch (message.Response.Status)
4963using var document = JsonDocument.Parse(message.Response.ContentStream);
4965return Response.FromValue(value, message.Response);
4968throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5007switch (message.Response.Status)
5012using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
5014return Response.FromValue(value, message.Response);
5017throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5042switch (message.Response.Status)
5047using var document = JsonDocument.Parse(message.Response.ContentStream);
5049return Response.FromValue(value, message.Response);
5052throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5086switch (message.Response.Status)
5091using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
5093return Response.FromValue(value, message.Response);
5096throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5116switch (message.Response.Status)
5121using var document = JsonDocument.Parse(message.Response.ContentStream);
5123return Response.FromValue(value, message.Response);
5126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5165switch (message.Response.Status)
5170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
5172return Response.FromValue(value, message.Response);
5175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5200switch (message.Response.Status)
5205using var document = JsonDocument.Parse(message.Response.ContentStream);
5207return Response.FromValue(value, message.Response);
5210throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.AI.TextAnalytics (122)
Generated\TextAnalyticsRestClient.cs (120)
79var headers = new TextAnalyticsAnalyzeHeaders(message.Response);
80switch (message.Response.Status)
83return ResponseWithHeaders.FromValue(headers, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
96var headers = new TextAnalyticsAnalyzeHeaders(message.Response);
97switch (message.Response.Status)
100return ResponseWithHeaders.FromValue(headers, message.Response);
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
150switch (message.Response.Status)
155using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
157return Response.FromValue(value, message.Response);
160throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
180switch (message.Response.Status)
185using var document = JsonDocument.Parse(message.Response.ContentStream);
187return Response.FromValue(value, message.Response);
190throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232switch (message.Response.Status)
237using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
239return Response.FromValue(value, message.Response);
242throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
256switch (message.Response.Status)
261using var document = JsonDocument.Parse(message.Response.ContentStream);
263return Response.FromValue(value, message.Response);
266throw _clientDiagnostics.CreateRequestFailedException(message.Response);
293var headers = new TextAnalyticsCancelHealthJobHeaders(message.Response);
294switch (message.Response.Status)
297return ResponseWithHeaders.FromValue(headers, message.Response);
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
310var headers = new TextAnalyticsCancelHealthJobHeaders(message.Response);
311switch (message.Response.Status)
314return ResponseWithHeaders.FromValue(headers, message.Response);
316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
367var headers = new TextAnalyticsHealthHeaders(message.Response);
368switch (message.Response.Status)
371return ResponseWithHeaders.FromValue(headers, message.Response);
373throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393var headers = new TextAnalyticsHealthHeaders(message.Response);
394switch (message.Response.Status)
397return ResponseWithHeaders.FromValue(headers, message.Response);
399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
455switch (message.Response.Status)
460using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
462return Response.FromValue(value, message.Response);
465throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
486switch (message.Response.Status)
491using var document = JsonDocument.Parse(message.Response.ContentStream);
493return Response.FromValue(value, message.Response);
496throw _clientDiagnostics.CreateRequestFailedException(message.Response);
565switch (message.Response.Status)
570using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
572return Response.FromValue(value, message.Response);
575throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
601switch (message.Response.Status)
606using var document = JsonDocument.Parse(message.Response.ContentStream);
608return Response.FromValue(value, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
667switch (message.Response.Status)
672using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
674return Response.FromValue(value, message.Response);
677throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
698switch (message.Response.Status)
703using var document = JsonDocument.Parse(message.Response.ContentStream);
705return Response.FromValue(value, message.Response);
708throw _clientDiagnostics.CreateRequestFailedException(message.Response);
759switch (message.Response.Status)
764using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
766return Response.FromValue(value, message.Response);
769throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
789switch (message.Response.Status)
794using var document = JsonDocument.Parse(message.Response.ContentStream);
796return Response.FromValue(value, message.Response);
799throw _clientDiagnostics.CreateRequestFailedException(message.Response);
850switch (message.Response.Status)
855using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
857return Response.FromValue(value, message.Response);
860throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
880switch (message.Response.Status)
885using var document = JsonDocument.Parse(message.Response.ContentStream);
887return Response.FromValue(value, message.Response);
890throw _clientDiagnostics.CreateRequestFailedException(message.Response);
951switch (message.Response.Status)
956using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
958return Response.FromValue(value, message.Response);
961throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
983switch (message.Response.Status)
988using var document = JsonDocument.Parse(message.Response.ContentStream);
990return Response.FromValue(value, message.Response);
993throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1026switch (message.Response.Status)
1031using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1033return Response.FromValue(value, message.Response);
1036throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1053switch (message.Response.Status)
1058using var document = JsonDocument.Parse(message.Response.ContentStream);
1060return Response.FromValue(value, message.Response);
1063throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1096switch (message.Response.Status)
1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1103return Response.FromValue(value, message.Response);
1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1123switch (message.Response.Status)
1128using var document = JsonDocument.Parse(message.Response.ContentStream);
1130return Response.FromValue(value, message.Response);
1133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1165switch (message.Response.Status)
1170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1172return Response.FromValue(value, message.Response);
1175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1192switch (message.Response.Status)
1197using var document = JsonDocument.Parse(message.Response.ContentStream);
1199return Response.FromValue(value, message.Response);
1202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1234switch (message.Response.Status)
1239using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1241return Response.FromValue(value, message.Response);
1244throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1261switch (message.Response.Status)
1266using var document = JsonDocument.Parse(message.Response.ContentStream);
1268return Response.FromValue(value, message.Response);
1271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.AI.Translation.Document (108)
Generated\DocumentTranslationRestClient.cs (106)
92var headers = new DocumentTranslationStartTranslationHeaders(message.Response);
93switch (message.Response.Status)
96return ResponseWithHeaders.FromValue(headers, message.Response);
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
133var headers = new DocumentTranslationStartTranslationHeaders(message.Response);
134switch (message.Response.Status)
137return ResponseWithHeaders.FromValue(headers, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
279var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response);
280switch (message.Response.Status)
285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
287return ResponseWithHeaders.FromValue(value, headers, message.Response);
290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response);
385switch (message.Response.Status)
390using var document = JsonDocument.Parse(message.Response.ContentStream);
392return ResponseWithHeaders.FromValue(value, headers, message.Response);
395throw _clientDiagnostics.CreateRequestFailedException(message.Response);
424var headers = new DocumentTranslationGetDocumentStatusHeaders(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return ResponseWithHeaders.FromValue(value, headers, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
447var headers = new DocumentTranslationGetDocumentStatusHeaders(message.Response);
448switch (message.Response.Status)
453using var document = JsonDocument.Parse(message.Response.ContentStream);
455return ResponseWithHeaders.FromValue(value, headers, message.Response);
458throw _clientDiagnostics.CreateRequestFailedException(message.Response);
488var headers = new DocumentTranslationGetTranslationStatusHeaders(message.Response);
489switch (message.Response.Status)
494using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
496return ResponseWithHeaders.FromValue(value, headers, message.Response);
499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514var headers = new DocumentTranslationGetTranslationStatusHeaders(message.Response);
515switch (message.Response.Status)
520using var document = JsonDocument.Parse(message.Response.ContentStream);
522return ResponseWithHeaders.FromValue(value, headers, message.Response);
525throw _clientDiagnostics.CreateRequestFailedException(message.Response);
561switch (message.Response.Status)
566using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
568return Response.FromValue(value, message.Response);
571throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
592switch (message.Response.Status)
597using var document = JsonDocument.Parse(message.Response.ContentStream);
599return Response.FromValue(value, message.Response);
602throw _clientDiagnostics.CreateRequestFailedException(message.Response);
739var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response);
740switch (message.Response.Status)
745using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
747return ResponseWithHeaders.FromValue(value, headers, message.Response);
750throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
839var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response);
840switch (message.Response.Status)
845using var document = JsonDocument.Parse(message.Response.ContentStream);
847return ResponseWithHeaders.FromValue(value, headers, message.Response);
850throw _clientDiagnostics.CreateRequestFailedException(message.Response);
878var headers = new DocumentTranslationGetSupportedDocumentFormatsHeaders(message.Response);
879switch (message.Response.Status)
884using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
886return ResponseWithHeaders.FromValue(value, headers, message.Response);
889throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
903var headers = new DocumentTranslationGetSupportedDocumentFormatsHeaders(message.Response);
904switch (message.Response.Status)
909using var document = JsonDocument.Parse(message.Response.ContentStream);
911return ResponseWithHeaders.FromValue(value, headers, message.Response);
914throw _clientDiagnostics.CreateRequestFailedException(message.Response);
942var headers = new DocumentTranslationGetSupportedGlossaryFormatsHeaders(message.Response);
943switch (message.Response.Status)
948using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
950return ResponseWithHeaders.FromValue(value, headers, message.Response);
953throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
967var headers = new DocumentTranslationGetSupportedGlossaryFormatsHeaders(message.Response);
968switch (message.Response.Status)
973using var document = JsonDocument.Parse(message.Response.ContentStream);
975return ResponseWithHeaders.FromValue(value, headers, message.Response);
978throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1002var headers = new DocumentTranslationGetSupportedStorageSourcesHeaders(message.Response);
1003switch (message.Response.Status)
1008using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1010return ResponseWithHeaders.FromValue(value, headers, message.Response);
1013throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1023var headers = new DocumentTranslationGetSupportedStorageSourcesHeaders(message.Response);
1024switch (message.Response.Status)
1029using var document = JsonDocument.Parse(message.Response.ContentStream);
1031return ResponseWithHeaders.FromValue(value, headers, message.Response);
1034throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1149var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response);
1150switch (message.Response.Status)
1155using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1157return ResponseWithHeaders.FromValue(value, headers, message.Response);
1160throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1261var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response);
1262switch (message.Response.Status)
1267using var document = JsonDocument.Parse(message.Response.ContentStream);
1269return ResponseWithHeaders.FromValue(value, headers, message.Response);
1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1382var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response);
1383switch (message.Response.Status)
1388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1390return ResponseWithHeaders.FromValue(value, headers, message.Response);
1393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1489var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response);
1490switch (message.Response.Status)
1495using var document = JsonDocument.Parse(message.Response.ContentStream);
1497return ResponseWithHeaders.FromValue(value, headers, message.Response);
1500throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Analytics.Purview.Catalog (690)
Azure.Analytics.Purview.Scanning (298)
Azure.Analytics.Synapse.AccessControl (66)
Generated\RoleAssignmentsRestClient.cs (40)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
135using var document = JsonDocument.Parse(message.Response.ContentStream);
137return Response.FromValue(value, message.Response);
140throw _clientDiagnostics.CreateRequestFailedException(message.Response);
184var headers = new RoleAssignmentsListRoleAssignmentsHeaders(message.Response);
185switch (message.Response.Status)
190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
192return ResponseWithHeaders.FromValue(value, headers, message.Response);
195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209var headers = new RoleAssignmentsListRoleAssignmentsHeaders(message.Response);
210switch (message.Response.Status)
215using var document = JsonDocument.Parse(message.Response.ContentStream);
217return ResponseWithHeaders.FromValue(value, headers, message.Response);
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
268switch (message.Response.Status)
273using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
275return Response.FromValue(value, message.Response);
278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
303switch (message.Response.Status)
308using var document = JsonDocument.Parse(message.Response.ContentStream);
310return Response.FromValue(value, message.Response);
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
352return Response.FromValue(value, message.Response);
355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
372switch (message.Response.Status)
377using var document = JsonDocument.Parse(message.Response.ContentStream);
379return Response.FromValue(value, message.Response);
382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
419switch (message.Response.Status)
423return message.Response;
425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
443switch (message.Response.Status)
447return message.Response;
449throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleDefinitionsRestClient.cs (24)
80switch (message.Response.Status)
85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
107switch (message.Response.Status)
112using var document = JsonDocument.Parse(message.Response.ContentStream);
119return Response.FromValue(value, message.Response);
122throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
181switch (message.Response.Status)
186using var document = JsonDocument.Parse(message.Response.ContentStream);
188return Response.FromValue(value, message.Response);
191throw _clientDiagnostics.CreateRequestFailedException(message.Response);
215switch (message.Response.Status)
220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
227return Response.FromValue(value, message.Response);
230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
252return Response.FromValue(value, message.Response);
255throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Analytics.Synapse.Artifacts (636)
Generated\DataFlowDebugSessionRestClient.cs (46)
80var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response);
81switch (message.Response.Status)
85return ResponseWithHeaders.FromValue(headers, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response);
105switch (message.Response.Status)
109return ResponseWithHeaders.FromValue(headers, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
135switch (message.Response.Status)
140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
142return Response.FromValue(value, message.Response);
145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
155switch (message.Response.Status)
160using var document = JsonDocument.Parse(message.Response.ContentStream);
162return Response.FromValue(value, message.Response);
165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
207return Response.FromValue(value, message.Response);
210throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
227switch (message.Response.Status)
232using var document = JsonDocument.Parse(message.Response.ContentStream);
234return Response.FromValue(value, message.Response);
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
275return message.Response;
277throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
294switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
334var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response);
335switch (message.Response.Status)
339return ResponseWithHeaders.FromValue(headers, message.Response);
341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
358var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response);
359switch (message.Response.Status)
363return ResponseWithHeaders.FromValue(headers, message.Response);
365throw _clientDiagnostics.CreateRequestFailedException(message.Response);
395switch (message.Response.Status)
400using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
402return Response.FromValue(value, message.Response);
405throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
422switch (message.Response.Status)
427using var document = JsonDocument.Parse(message.Response.ContentStream);
429return Response.FromValue(value, message.Response);
432throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataFlowRestClient.cs (42)
91switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
120switch (message.Response.Status)
124return message.Response;
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
196using var document = JsonDocument.Parse(message.Response.ContentStream);
198return Response.FromValue(value, message.Response);
201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
233switch (message.Response.Status)
238return message.Response;
240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257switch (message.Response.Status)
262return message.Response;
264throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
310return message.Response;
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
334switch (message.Response.Status)
338return message.Response;
340throw _clientDiagnostics.CreateRequestFailedException(message.Response);
364switch (message.Response.Status)
369using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
371return Response.FromValue(value, message.Response);
374throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
424switch (message.Response.Status)
429using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
431return Response.FromValue(value, message.Response);
434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
451switch (message.Response.Status)
456using var document = JsonDocument.Parse(message.Response.ContentStream);
458return Response.FromValue(value, message.Response);
461throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatasetRestClient.cs (44)
69switch (message.Response.Status)
74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
76return Response.FromValue(value, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
89switch (message.Response.Status)
94using var document = JsonDocument.Parse(message.Response.ContentStream);
96return Response.FromValue(value, message.Response);
99throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
149return message.Response;
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
174switch (message.Response.Status)
178return message.Response;
180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
224return Response.FromValue(value, message.Response);
227return Response.FromValue((DatasetResource)null, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
247switch (message.Response.Status)
252using var document = JsonDocument.Parse(message.Response.ContentStream);
254return Response.FromValue(value, message.Response);
257return Response.FromValue((DatasetResource)null, message.Response);
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
296return message.Response;
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
364switch (message.Response.Status)
368return message.Response;
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
392switch (message.Response.Status)
396return message.Response;
398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
455switch (message.Response.Status)
460using var document = JsonDocument.Parse(message.Response.ContentStream);
462return Response.FromValue(value, message.Response);
465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LibraryRestClient.cs (62)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
137return message.Response;
139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
156switch (message.Response.Status)
160return message.Response;
162throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
201return Response.FromValue<object>(value, message.Response);
206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
208return Response.FromValue<object>(value, message.Response);
211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue<object>(value, message.Response);
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue<object>(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
277switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
306return message.Response;
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
340switch (message.Response.Status)
345using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
347return Response.FromValue(value, message.Response);
350return Response.FromValue((LibraryResource)null, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
369switch (message.Response.Status)
374using var document = JsonDocument.Parse(message.Response.ContentStream);
376return Response.FromValue(value, message.Response);
379return Response.FromValue((LibraryResource)null, message.Response);
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
413switch (message.Response.Status)
417return message.Response;
419throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
436switch (message.Response.Status)
440return message.Response;
442throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
490return message.Response;
492throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
515switch (message.Response.Status)
518return message.Response;
520throw _clientDiagnostics.CreateRequestFailedException(message.Response);
550switch (message.Response.Status)
555using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
557return Response.FromValue(value, message.Response);
560throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
577switch (message.Response.Status)
582using var document = JsonDocument.Parse(message.Response.ContentStream);
584return Response.FromValue(value, message.Response);
587throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LinkedServiceRestClient.cs (44)
69switch (message.Response.Status)
74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
76return Response.FromValue(value, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
89switch (message.Response.Status)
94using var document = JsonDocument.Parse(message.Response.ContentStream);
96return Response.FromValue(value, message.Response);
99throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
149return message.Response;
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
174switch (message.Response.Status)
178return message.Response;
180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
224return Response.FromValue(value, message.Response);
227return Response.FromValue((LinkedServiceResource)null, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
247switch (message.Response.Status)
252using var document = JsonDocument.Parse(message.Response.ContentStream);
254return Response.FromValue(value, message.Response);
257return Response.FromValue((LinkedServiceResource)null, message.Response);
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
296return message.Response;
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
364switch (message.Response.Status)
368return message.Response;
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
392switch (message.Response.Status)
396return message.Response;
398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
455switch (message.Response.Status)
460using var document = JsonDocument.Parse(message.Response.ContentStream);
462return Response.FromValue(value, message.Response);
465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebookRestClient.cs (60)
69switch (message.Response.Status)
74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
76return Response.FromValue(value, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
89switch (message.Response.Status)
94using var document = JsonDocument.Parse(message.Response.ContentStream);
96return Response.FromValue(value, message.Response);
99throw _clientDiagnostics.CreateRequestFailedException(message.Response);
123switch (message.Response.Status)
128using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
130return Response.FromValue(value, message.Response);
133throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
143switch (message.Response.Status)
148using var document = JsonDocument.Parse(message.Response.ContentStream);
150return Response.FromValue(value, message.Response);
153throw _clientDiagnostics.CreateRequestFailedException(message.Response);
199switch (message.Response.Status)
203return message.Response;
205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
232return message.Response;
234throw _clientDiagnostics.CreateRequestFailedException(message.Response);
271switch (message.Response.Status)
276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
278return Response.FromValue(value, message.Response);
281return Response.FromValue((NotebookResource)null, message.Response);
283throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
306using var document = JsonDocument.Parse(message.Response.ContentStream);
308return Response.FromValue(value, message.Response);
311return Response.FromValue((NotebookResource)null, message.Response);
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
350return message.Response;
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
369switch (message.Response.Status)
374return message.Response;
376throw _clientDiagnostics.CreateRequestFailedException(message.Response);
418switch (message.Response.Status)
422return message.Response;
424throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
446switch (message.Response.Status)
450return message.Response;
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
482switch (message.Response.Status)
487using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
489return Response.FromValue(value, message.Response);
492throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
509switch (message.Response.Status)
514using var document = JsonDocument.Parse(message.Response.ContentStream);
516return Response.FromValue(value, message.Response);
519throw _clientDiagnostics.CreateRequestFailedException(message.Response);
549switch (message.Response.Status)
554using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
556return Response.FromValue(value, message.Response);
559throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
576switch (message.Response.Status)
581using var document = JsonDocument.Parse(message.Response.ContentStream);
583return Response.FromValue(value, message.Response);
586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PipelineRestClient.cs (52)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
146switch (message.Response.Status)
150return message.Response;
152throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
179return message.Response;
181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
218switch (message.Response.Status)
223using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
225return Response.FromValue(value, message.Response);
228return Response.FromValue((PipelineResource)null, message.Response);
230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
248switch (message.Response.Status)
253using var document = JsonDocument.Parse(message.Response.ContentStream);
255return Response.FromValue(value, message.Response);
258return Response.FromValue((PipelineResource)null, message.Response);
260throw _clientDiagnostics.CreateRequestFailedException(message.Response);
292switch (message.Response.Status)
297return message.Response;
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
321return message.Response;
323throw _clientDiagnostics.CreateRequestFailedException(message.Response);
365switch (message.Response.Status)
369return message.Response;
371throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
397return message.Response;
399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
492switch (message.Response.Status)
497using var document = JsonDocument.Parse(message.Response.ContentStream);
499return Response.FromValue(value, message.Response);
502throw _clientDiagnostics.CreateRequestFailedException(message.Response);
532switch (message.Response.Status)
537using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
539return Response.FromValue(value, message.Response);
542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PipelineRunRestClient.cs (30)
80switch (message.Response.Status)
85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
87return Response.FromValue(value, message.Response);
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
107switch (message.Response.Status)
112using var document = JsonDocument.Parse(message.Response.ContentStream);
114return Response.FromValue(value, message.Response);
117throw _clientDiagnostics.CreateRequestFailedException(message.Response);
149switch (message.Response.Status)
154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
156return Response.FromValue(value, message.Response);
159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
176switch (message.Response.Status)
181using var document = JsonDocument.Parse(message.Response.ContentStream);
183return Response.FromValue(value, message.Response);
186throw _clientDiagnostics.CreateRequestFailedException(message.Response);
235switch (message.Response.Status)
240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
242return Response.FromValue(value, message.Response);
245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
272switch (message.Response.Status)
277using var document = JsonDocument.Parse(message.Response.ContentStream);
279return Response.FromValue(value, message.Response);
282throw _clientDiagnostics.CreateRequestFailedException(message.Response);
320switch (message.Response.Status)
323return message.Response;
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343switch (message.Response.Status)
346return message.Response;
348throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkJobDefinitionRestClient.cs (56)
69switch (message.Response.Status)
74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
76return Response.FromValue(value, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
89switch (message.Response.Status)
94using var document = JsonDocument.Parse(message.Response.ContentStream);
96return Response.FromValue(value, message.Response);
99throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
149return message.Response;
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
174switch (message.Response.Status)
178return message.Response;
180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
224return Response.FromValue(value, message.Response);
227return Response.FromValue((SparkJobDefinitionResource)null, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
247switch (message.Response.Status)
252using var document = JsonDocument.Parse(message.Response.ContentStream);
254return Response.FromValue(value, message.Response);
257return Response.FromValue((SparkJobDefinitionResource)null, message.Response);
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
296return message.Response;
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
359return message.Response;
361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
382return message.Response;
384throw _clientDiagnostics.CreateRequestFailedException(message.Response);
426switch (message.Response.Status)
430return message.Response;
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
458return message.Response;
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
499return message.Response;
501throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
518switch (message.Response.Status)
522return message.Response;
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
554switch (message.Response.Status)
559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
561return Response.FromValue(value, message.Response);
564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
581switch (message.Response.Status)
586using var document = JsonDocument.Parse(message.Response.ContentStream);
588return Response.FromValue(value, message.Response);
591throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SqlScriptRestClient.cs (44)
69switch (message.Response.Status)
74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
76return Response.FromValue(value, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
89switch (message.Response.Status)
94using var document = JsonDocument.Parse(message.Response.ContentStream);
96return Response.FromValue(value, message.Response);
99throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
149return message.Response;
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
174switch (message.Response.Status)
178return message.Response;
180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
224return Response.FromValue(value, message.Response);
227return Response.FromValue((SqlScriptResource)null, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
247switch (message.Response.Status)
252using var document = JsonDocument.Parse(message.Response.ContentStream);
254return Response.FromValue(value, message.Response);
257return Response.FromValue((SqlScriptResource)null, message.Response);
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
296return message.Response;
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
364switch (message.Response.Status)
368return message.Response;
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
392switch (message.Response.Status)
396return message.Response;
398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
455switch (message.Response.Status)
460using var document = JsonDocument.Parse(message.Response.ContentStream);
462return Response.FromValue(value, message.Response);
465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TriggerRestClient.cs (70)
69switch (message.Response.Status)
74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
76return Response.FromValue(value, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
89switch (message.Response.Status)
94using var document = JsonDocument.Parse(message.Response.ContentStream);
96return Response.FromValue(value, message.Response);
99throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
149return message.Response;
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
174switch (message.Response.Status)
178return message.Response;
180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
224return Response.FromValue(value, message.Response);
227return Response.FromValue((TriggerResource)null, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
247switch (message.Response.Status)
252using var document = JsonDocument.Parse(message.Response.ContentStream);
254return Response.FromValue(value, message.Response);
257return Response.FromValue((TriggerResource)null, message.Response);
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
296return message.Response;
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
359return message.Response;
361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
382return message.Response;
384throw _clientDiagnostics.CreateRequestFailedException(message.Response);
417switch (message.Response.Status)
422using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
424return Response.FromValue(value, message.Response);
427throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
444switch (message.Response.Status)
449using var document = JsonDocument.Parse(message.Response.ContentStream);
451return Response.FromValue(value, message.Response);
454throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
491return message.Response;
493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
510switch (message.Response.Status)
514return message.Response;
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
549switch (message.Response.Status)
552return message.Response;
554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
571switch (message.Response.Status)
574return message.Response;
576throw _clientDiagnostics.CreateRequestFailedException(message.Response);
609switch (message.Response.Status)
612return message.Response;
614throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
631switch (message.Response.Status)
634return message.Response;
636throw _clientDiagnostics.CreateRequestFailedException(message.Response);
666switch (message.Response.Status)
671using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
673return Response.FromValue(value, message.Response);
676throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
693switch (message.Response.Status)
698using var document = JsonDocument.Parse(message.Response.ContentStream);
700return Response.FromValue(value, message.Response);
703throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Analytics.Synapse.ManagedPrivateEndpoints (40)
Generated\ManagedPrivateEndpointsRestClient.cs (38)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
259switch (message.Response.Status)
263return message.Response;
265throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
287switch (message.Response.Status)
291return message.Response;
293throw _clientDiagnostics.CreateRequestFailedException(message.Response);
326switch (message.Response.Status)
331using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
333return Response.FromValue(value, message.Response);
336throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
353switch (message.Response.Status)
358using var document = JsonDocument.Parse(message.Response.ContentStream);
360return Response.FromValue(value, message.Response);
363throw _clientDiagnostics.CreateRequestFailedException(message.Response);
398switch (message.Response.Status)
403using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
405return Response.FromValue(value, message.Response);
408throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
430switch (message.Response.Status)
435using var document = JsonDocument.Parse(message.Response.ContentStream);
437return Response.FromValue(value, message.Response);
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Analytics.Synapse.Monitoring (18)
Azure.Analytics.Synapse.Spark (100)
Generated\SparkBatchRestClient.cs (30)
98switch (message.Response.Status)
103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
105return Response.FromValue(value, message.Response);
108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
130using var document = JsonDocument.Parse(message.Response.ContentStream);
132return Response.FromValue(value, message.Response);
135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
178switch (message.Response.Status)
183using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
185return Response.FromValue(value, message.Response);
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
206switch (message.Response.Status)
211using var document = JsonDocument.Parse(message.Response.ContentStream);
213return Response.FromValue(value, message.Response);
216throw _clientDiagnostics.CreateRequestFailedException(message.Response);
250switch (message.Response.Status)
255using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
257return Response.FromValue(value, message.Response);
260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
272switch (message.Response.Status)
277using var document = JsonDocument.Parse(message.Response.ContentStream);
279return Response.FromValue(value, message.Response);
282throw _clientDiagnostics.CreateRequestFailedException(message.Response);
310switch (message.Response.Status)
313return message.Response;
315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkSessionRestClient.cs (68)
98switch (message.Response.Status)
103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
105return Response.FromValue(value, message.Response);
108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
130using var document = JsonDocument.Parse(message.Response.ContentStream);
132return Response.FromValue(value, message.Response);
135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
178switch (message.Response.Status)
183using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
185return Response.FromValue(value, message.Response);
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
206switch (message.Response.Status)
211using var document = JsonDocument.Parse(message.Response.ContentStream);
213return Response.FromValue(value, message.Response);
216throw _clientDiagnostics.CreateRequestFailedException(message.Response);
250switch (message.Response.Status)
255using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
257return Response.FromValue(value, message.Response);
260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
272switch (message.Response.Status)
277using var document = JsonDocument.Parse(message.Response.ContentStream);
279return Response.FromValue(value, message.Response);
282throw _clientDiagnostics.CreateRequestFailedException(message.Response);
310switch (message.Response.Status)
313return message.Response;
315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
360switch (message.Response.Status)
363return message.Response;
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
376switch (message.Response.Status)
379return message.Response;
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
411switch (message.Response.Status)
416using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
418return Response.FromValue(value, message.Response);
421throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
432switch (message.Response.Status)
437using var document = JsonDocument.Parse(message.Response.ContentStream);
439return Response.FromValue(value, message.Response);
442throw _clientDiagnostics.CreateRequestFailedException(message.Response);
483switch (message.Response.Status)
488using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
490return Response.FromValue(value, message.Response);
493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
511switch (message.Response.Status)
516using var document = JsonDocument.Parse(message.Response.ContentStream);
518return Response.FromValue(value, message.Response);
521throw _clientDiagnostics.CreateRequestFailedException(message.Response);
553switch (message.Response.Status)
558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
560return Response.FromValue(value, message.Response);
563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
575switch (message.Response.Status)
580using var document = JsonDocument.Parse(message.Response.ContentStream);
582return Response.FromValue(value, message.Response);
585throw _clientDiagnostics.CreateRequestFailedException(message.Response);
618switch (message.Response.Status)
623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
625return Response.FromValue(value, message.Response);
628throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
640switch (message.Response.Status)
645using var document = JsonDocument.Parse(message.Response.ContentStream);
647return Response.FromValue(value, message.Response);
650throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Communication.Chat (148)
Generated\ChatRestClient.cs (30)
95switch (message.Response.Status)
100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
102return Response.FromValue(value, message.Response);
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129using var document = JsonDocument.Parse(message.Response.ContentStream);
131return Response.FromValue(value, message.Response);
134throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
190switch (message.Response.Status)
195using var document = JsonDocument.Parse(message.Response.ContentStream);
197return Response.FromValue(value, message.Response);
200throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232switch (message.Response.Status)
235return message.Response;
237throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
254switch (message.Response.Status)
257return message.Response;
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
296using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
298return Response.FromValue(value, message.Response);
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
320switch (message.Response.Status)
325using var document = JsonDocument.Parse(message.Response.ContentStream);
327return Response.FromValue(value, message.Response);
330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ChatThreadRestClient.cs (116)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
172switch (message.Response.Status)
175return message.Response;
177throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
199switch (message.Response.Status)
202return message.Response;
204throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
297switch (message.Response.Status)
302using var document = JsonDocument.Parse(message.Response.ContentStream);
304return Response.FromValue(value, message.Response);
307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return Response.FromValue(value, message.Response);
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
527switch (message.Response.Status)
530return message.Response;
532throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
556switch (message.Response.Status)
559return message.Response;
561throw _clientDiagnostics.CreateRequestFailedException(message.Response);
600switch (message.Response.Status)
603return message.Response;
605throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
627switch (message.Response.Status)
630return message.Response;
632throw _clientDiagnostics.CreateRequestFailedException(message.Response);
665switch (message.Response.Status)
668return message.Response;
670throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
687switch (message.Response.Status)
690return message.Response;
692throw _clientDiagnostics.CreateRequestFailedException(message.Response);
735switch (message.Response.Status)
740using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
742return Response.FromValue(value, message.Response);
745throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
764switch (message.Response.Status)
769using var document = JsonDocument.Parse(message.Response.ContentStream);
771return Response.FromValue(value, message.Response);
774throw _clientDiagnostics.CreateRequestFailedException(message.Response);
822switch (message.Response.Status)
825return message.Response;
827throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
848switch (message.Response.Status)
851return message.Response;
853throw _clientDiagnostics.CreateRequestFailedException(message.Response);
896switch (message.Response.Status)
901using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
903return Response.FromValue(value, message.Response);
906throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
928switch (message.Response.Status)
933using var document = JsonDocument.Parse(message.Response.ContentStream);
935return Response.FromValue(value, message.Response);
938throw _clientDiagnostics.CreateRequestFailedException(message.Response);
979switch (message.Response.Status)
982return message.Response;
984throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1002switch (message.Response.Status)
1005return message.Response;
1007throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1039switch (message.Response.Status)
1044using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1046return Response.FromValue(value, message.Response);
1049throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1066switch (message.Response.Status)
1071using var document = JsonDocument.Parse(message.Response.ContentStream);
1073return Response.FromValue(value, message.Response);
1076throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1113switch (message.Response.Status)
1118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1120return Response.FromValue(value, message.Response);
1123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1147switch (message.Response.Status)
1152using var document = JsonDocument.Parse(message.Response.ContentStream);
1154return Response.FromValue(value, message.Response);
1157throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1194switch (message.Response.Status)
1199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1201return Response.FromValue(value, message.Response);
1204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1228switch (message.Response.Status)
1233using var document = JsonDocument.Parse(message.Response.ContentStream);
1235return Response.FromValue(value, message.Response);
1238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1275switch (message.Response.Status)
1280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1282return Response.FromValue(value, message.Response);
1285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1309switch (message.Response.Status)
1314using var document = JsonDocument.Parse(message.Response.ContentStream);
1316return Response.FromValue(value, message.Response);
1319throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Communication.Identity (38)
Generated\CommunicationIdentityRestClient.cs (36)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
106switch (message.Response.Status)
111using var document = JsonDocument.Parse(message.Response.ContentStream);
113return Response.FromValue(value, message.Response);
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
148switch (message.Response.Status)
151return message.Response;
153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
170switch (message.Response.Status)
173return message.Response;
175throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
211return message.Response;
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
230switch (message.Response.Status)
233return message.Response;
235throw _clientDiagnostics.CreateRequestFailedException(message.Response);
271switch (message.Response.Status)
276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
278return Response.FromValue(value, message.Response);
281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
351switch (message.Response.Status)
356using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
358return Response.FromValue(value, message.Response);
361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
388using var document = JsonDocument.Parse(message.Response.ContentStream);
390return Response.FromValue(value, message.Response);
393throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Communication.NetworkTraversal (10)
Azure.Communication.PhoneNumbers (82)
Generated\InternalPhoneNumbersRestClient.cs (80)
86var headers = new PhoneNumbersSearchAvailablePhoneNumbersHeaders(message.Response);
87switch (message.Response.Status)
90return ResponseWithHeaders.FromValue(headers, message.Response);
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114var headers = new PhoneNumbersSearchAvailablePhoneNumbersHeaders(message.Response);
115switch (message.Response.Status)
118return ResponseWithHeaders.FromValue(headers, message.Response);
120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return Response.FromValue(value, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
179switch (message.Response.Status)
184using var document = JsonDocument.Parse(message.Response.ContentStream);
186return Response.FromValue(value, message.Response);
189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222var headers = new PhoneNumbersPurchasePhoneNumbersHeaders(message.Response);
223switch (message.Response.Status)
226return ResponseWithHeaders.FromValue(headers, message.Response);
228throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239var headers = new PhoneNumbersPurchasePhoneNumbersHeaders(message.Response);
240switch (message.Response.Status)
243return ResponseWithHeaders.FromValue(headers, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
277var headers = new PhoneNumbersGetOperationHeaders(message.Response);
278switch (message.Response.Status)
283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
285return ResponseWithHeaders.FromValue(value, headers, message.Response);
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305var headers = new PhoneNumbersGetOperationHeaders(message.Response);
306switch (message.Response.Status)
311using var document = JsonDocument.Parse(message.Response.ContentStream);
313return ResponseWithHeaders.FromValue(value, headers, message.Response);
316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
348switch (message.Response.Status)
351return message.Response;
353throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
370switch (message.Response.Status)
373return message.Response;
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
419var headers = new PhoneNumbersUpdateCapabilitiesHeaders(message.Response);
420switch (message.Response.Status)
423return ResponseWithHeaders.FromValue(headers, message.Response);
425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
444var headers = new PhoneNumbersUpdateCapabilitiesHeaders(message.Response);
445switch (message.Response.Status)
448return ResponseWithHeaders.FromValue(headers, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
482switch (message.Response.Status)
487using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
489return Response.FromValue(value, message.Response);
492throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
509switch (message.Response.Status)
514using var document = JsonDocument.Parse(message.Response.ContentStream);
516return Response.FromValue(value, message.Response);
519throw _clientDiagnostics.CreateRequestFailedException(message.Response);
551var headers = new PhoneNumbersReleasePhoneNumberHeaders(message.Response);
552switch (message.Response.Status)
555return ResponseWithHeaders.FromValue(headers, message.Response);
557throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
574var headers = new PhoneNumbersReleasePhoneNumberHeaders(message.Response);
575switch (message.Response.Status)
578return ResponseWithHeaders.FromValue(headers, message.Response);
580throw _clientDiagnostics.CreateRequestFailedException(message.Response);
614switch (message.Response.Status)
619using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
621return Response.FromValue(value, message.Response);
624throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
636switch (message.Response.Status)
641using var document = JsonDocument.Parse(message.Response.ContentStream);
643return Response.FromValue(value, message.Response);
646throw _clientDiagnostics.CreateRequestFailedException(message.Response);
678switch (message.Response.Status)
683using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
685return Response.FromValue(value, message.Response);
688throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
707switch (message.Response.Status)
712using var document = JsonDocument.Parse(message.Response.ContentStream);
714return Response.FromValue(value, message.Response);
717throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Communication.Sms (10)
Azure.Containers.ContainerRegistry (258)
Generated\ContainerRegistryBlobRestClient.cs (88)
75var headers = new ContainerRegistryBlobGetBlobHeaders(message.Response);
76switch (message.Response.Status)
81return ResponseWithHeaders.FromValue(value, headers, message.Response);
84return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response);
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
108var headers = new ContainerRegistryBlobGetBlobHeaders(message.Response);
109switch (message.Response.Status)
114return ResponseWithHeaders.FromValue(value, headers, message.Response);
117return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response);
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
157var headers = new ContainerRegistryBlobCheckBlobExistsHeaders(message.Response);
158switch (message.Response.Status)
162return ResponseWithHeaders.FromValue(headers, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
186var headers = new ContainerRegistryBlobCheckBlobExistsHeaders(message.Response);
187switch (message.Response.Status)
191return ResponseWithHeaders.FromValue(headers, message.Response);
193throw _clientDiagnostics.CreateRequestFailedException(message.Response);
231var headers = new ContainerRegistryBlobDeleteBlobHeaders(message.Response);
232switch (message.Response.Status)
237return ResponseWithHeaders.FromValue(value, headers, message.Response);
240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
262var headers = new ContainerRegistryBlobDeleteBlobHeaders(message.Response);
263switch (message.Response.Status)
268return ResponseWithHeaders.FromValue(value, headers, message.Response);
271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
315var headers = new ContainerRegistryBlobMountBlobHeaders(message.Response);
316switch (message.Response.Status)
319return ResponseWithHeaders.FromValue(headers, message.Response);
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
348var headers = new ContainerRegistryBlobMountBlobHeaders(message.Response);
349switch (message.Response.Status)
352return ResponseWithHeaders.FromValue(headers, message.Response);
354throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385var headers = new ContainerRegistryBlobGetUploadStatusHeaders(message.Response);
386switch (message.Response.Status)
389return ResponseWithHeaders.FromValue(headers, message.Response);
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
408var headers = new ContainerRegistryBlobGetUploadStatusHeaders(message.Response);
409switch (message.Response.Status)
412return ResponseWithHeaders.FromValue(headers, message.Response);
414throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452var headers = new ContainerRegistryBlobUploadChunkHeaders(message.Response);
453switch (message.Response.Status)
456return ResponseWithHeaders.FromValue(headers, message.Response);
458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
480var headers = new ContainerRegistryBlobUploadChunkHeaders(message.Response);
481switch (message.Response.Status)
484return ResponseWithHeaders.FromValue(headers, message.Response);
486throw _clientDiagnostics.CreateRequestFailedException(message.Response);
529var headers = new ContainerRegistryBlobCompleteUploadHeaders(message.Response);
530switch (message.Response.Status)
533return ResponseWithHeaders.FromValue(headers, message.Response);
535throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
558var headers = new ContainerRegistryBlobCompleteUploadHeaders(message.Response);
559switch (message.Response.Status)
562return ResponseWithHeaders.FromValue(headers, message.Response);
564throw _clientDiagnostics.CreateRequestFailedException(message.Response);
595switch (message.Response.Status)
598return message.Response;
600throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
617switch (message.Response.Status)
620return message.Response;
622throw _clientDiagnostics.CreateRequestFailedException(message.Response);
654var headers = new ContainerRegistryBlobStartUploadHeaders(message.Response);
655switch (message.Response.Status)
658return ResponseWithHeaders.FromValue(headers, message.Response);
660throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
677var headers = new ContainerRegistryBlobStartUploadHeaders(message.Response);
678switch (message.Response.Status)
681return ResponseWithHeaders.FromValue(headers, message.Response);
683throw _clientDiagnostics.CreateRequestFailedException(message.Response);
727var headers = new ContainerRegistryBlobGetChunkHeaders(message.Response);
728switch (message.Response.Status)
733return ResponseWithHeaders.FromValue(value, headers, message.Response);
736throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
763var headers = new ContainerRegistryBlobGetChunkHeaders(message.Response);
764switch (message.Response.Status)
769return ResponseWithHeaders.FromValue(value, headers, message.Response);
772throw _clientDiagnostics.CreateRequestFailedException(message.Response);
816var headers = new ContainerRegistryBlobCheckChunkExistsHeaders(message.Response);
817switch (message.Response.Status)
820return ResponseWithHeaders.FromValue(headers, message.Response);
822throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
849var headers = new ContainerRegistryBlobCheckChunkExistsHeaders(message.Response);
850switch (message.Response.Status)
853return ResponseWithHeaders.FromValue(headers, message.Response);
855throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRegistryRestClient.cs (150)
60switch (message.Response.Status)
63return message.Response;
65throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
75switch (message.Response.Status)
78return message.Response;
80throw _clientDiagnostics.CreateRequestFailedException(message.Response);
123switch (message.Response.Status)
128using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
130return Response.FromValue(value, message.Response);
133throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
156switch (message.Response.Status)
161using var document = JsonDocument.Parse(message.Response.ContentStream);
163return Response.FromValue(value, message.Response);
166throw _clientDiagnostics.CreateRequestFailedException(message.Response);
213var headers = new ContainerRegistryCreateManifestHeaders(message.Response);
214switch (message.Response.Status)
219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
221return ResponseWithHeaders.FromValue(value, headers, message.Response);
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251var headers = new ContainerRegistryCreateManifestHeaders(message.Response);
252switch (message.Response.Status)
257using var document = JsonDocument.Parse(message.Response.ContentStream);
259return ResponseWithHeaders.FromValue(value, headers, message.Response);
262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
300switch (message.Response.Status)
304return message.Response;
306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
332return message.Response;
334throw _clientDiagnostics.CreateRequestFailedException(message.Response);
367var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response);
368switch (message.Response.Status)
373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
375return ResponseWithHeaders.FromValue(value, headers, message.Response);
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response);
391switch (message.Response.Status)
396using var document = JsonDocument.Parse(message.Response.ContentStream);
398return ResponseWithHeaders.FromValue(value, headers, message.Response);
401throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
464using var document = JsonDocument.Parse(message.Response.ContentStream);
466return Response.FromValue(value, message.Response);
469throw _clientDiagnostics.CreateRequestFailedException(message.Response);
500switch (message.Response.Status)
504return message.Response;
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
527return message.Response;
529throw _clientDiagnostics.CreateRequestFailedException(message.Response);
568switch (message.Response.Status)
573using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
575return Response.FromValue(value0, message.Response);
578throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
596switch (message.Response.Status)
601using var document = JsonDocument.Parse(message.Response.ContentStream);
603return Response.FromValue(value0, message.Response);
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
658var headers = new ContainerRegistryGetTagsHeaders(message.Response);
659switch (message.Response.Status)
664using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
666return ResponseWithHeaders.FromValue(value, headers, message.Response);
669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
690var headers = new ContainerRegistryGetTagsHeaders(message.Response);
691switch (message.Response.Status)
696using var document = JsonDocument.Parse(message.Response.ContentStream);
698return ResponseWithHeaders.FromValue(value, headers, message.Response);
701throw _clientDiagnostics.CreateRequestFailedException(message.Response);
739switch (message.Response.Status)
744using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
746return Response.FromValue(value, message.Response);
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
771switch (message.Response.Status)
776using var document = JsonDocument.Parse(message.Response.ContentStream);
778return Response.FromValue(value, message.Response);
781throw _clientDiagnostics.CreateRequestFailedException(message.Response);
827switch (message.Response.Status)
832using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
834return Response.FromValue(value0, message.Response);
837throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
860switch (message.Response.Status)
865using var document = JsonDocument.Parse(message.Response.ContentStream);
867return Response.FromValue(value0, message.Response);
870throw _clientDiagnostics.CreateRequestFailedException(message.Response);
908switch (message.Response.Status)
912return message.Response;
914throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
936switch (message.Response.Status)
940return message.Response;
942throw _clientDiagnostics.CreateRequestFailedException(message.Response);
989var headers = new ContainerRegistryGetManifestsHeaders(message.Response);
990switch (message.Response.Status)
995using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
997return ResponseWithHeaders.FromValue(value, headers, message.Response);
1000throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1020var headers = new ContainerRegistryGetManifestsHeaders(message.Response);
1021switch (message.Response.Status)
1026using var document = JsonDocument.Parse(message.Response.ContentStream);
1028return ResponseWithHeaders.FromValue(value, headers, message.Response);
1031throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1069switch (message.Response.Status)
1074using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1076return Response.FromValue(value, message.Response);
1079throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1101switch (message.Response.Status)
1106using var document = JsonDocument.Parse(message.Response.ContentStream);
1108return Response.FromValue(value, message.Response);
1111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1157switch (message.Response.Status)
1162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1164return Response.FromValue(value0, message.Response);
1167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1190switch (message.Response.Status)
1195using var document = JsonDocument.Parse(message.Response.ContentStream);
1197return Response.FromValue(value0, message.Response);
1200throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1232var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response);
1233switch (message.Response.Status)
1238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1240return ResponseWithHeaders.FromValue(value, headers, message.Response);
1243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1262var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response);
1263switch (message.Response.Status)
1268using var document = JsonDocument.Parse(message.Response.ContentStream);
1270return ResponseWithHeaders.FromValue(value, headers, message.Response);
1273throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1312var headers = new ContainerRegistryGetTagsHeaders(message.Response);
1313switch (message.Response.Status)
1318using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1320return ResponseWithHeaders.FromValue(value, headers, message.Response);
1323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1349var headers = new ContainerRegistryGetTagsHeaders(message.Response);
1350switch (message.Response.Status)
1355using var document = JsonDocument.Parse(message.Response.ContentStream);
1357return ResponseWithHeaders.FromValue(value, headers, message.Response);
1360throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1398var headers = new ContainerRegistryGetManifestsHeaders(message.Response);
1399switch (message.Response.Status)
1404using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1406return ResponseWithHeaders.FromValue(value, headers, message.Response);
1409throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1434var headers = new ContainerRegistryGetManifestsHeaders(message.Response);
1435switch (message.Response.Status)
1440using var document = JsonDocument.Parse(message.Response.ContentStream);
1442return ResponseWithHeaders.FromValue(value, headers, message.Response);
1445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Core (24)
Azure.Core.Perf (2)
Azure.Core.TestFramework (8)
Azure.Core.Tests (21)
Azure.Data.AppConfiguration (1)
Azure.Data.SchemaRegistry (32)
Generated\SchemaRestClient.cs (30)
78var headers = new SchemaGetByIdHeaders(message.Response);
79switch (message.Response.Status)
83StreamReader streamReader = new StreamReader(message.Response.ContentStream);
85return ResponseWithHeaders.FromValue(value, headers, message.Response);
88throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
105var headers = new SchemaGetByIdHeaders(message.Response);
106switch (message.Response.Status)
110StreamReader streamReader = new StreamReader(message.Response.ContentStream);
112return ResponseWithHeaders.FromValue(value, headers, message.Response);
115throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164var headers = new SchemaQueryIdByContentHeaders(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return ResponseWithHeaders.FromValue(value, headers, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203var headers = new SchemaQueryIdByContentHeaders(message.Response);
204switch (message.Response.Status)
209using var document = JsonDocument.Parse(message.Response.ContentStream);
211return ResponseWithHeaders.FromValue(value, headers, message.Response);
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266var headers = new SchemaRegisterHeaders(message.Response);
267switch (message.Response.Status)
272using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
274return ResponseWithHeaders.FromValue(value, headers, message.Response);
277throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
308var headers = new SchemaRegisterHeaders(message.Response);
309switch (message.Response.Status)
314using var document = JsonDocument.Parse(message.Response.ContentStream);
316return ResponseWithHeaders.FromValue(value, headers, message.Response);
319throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Data.Tables (163)
Generated\ServiceRestClient.cs (28)
86var headers = new ServiceSetPropertiesHeaders(message.Response);
87switch (message.Response.Status)
90return ResponseWithHeaders.FromValue(headers, message.Response);
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
110var headers = new ServiceSetPropertiesHeaders(message.Response);
111switch (message.Response.Status)
114return ResponseWithHeaders.FromValue(headers, message.Response);
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
147var headers = new ServiceGetPropertiesHeaders(message.Response);
148switch (message.Response.Status)
153var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
158return ResponseWithHeaders.FromValue(value, headers, message.Response);
161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
172var headers = new ServiceGetPropertiesHeaders(message.Response);
173switch (message.Response.Status)
178var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
183return ResponseWithHeaders.FromValue(value, headers, message.Response);
186throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217var headers = new ServiceGetStatisticsHeaders(message.Response);
218switch (message.Response.Status)
223var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
228return ResponseWithHeaders.FromValue(value, headers, message.Response);
231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
242var headers = new ServiceGetStatisticsHeaders(message.Response);
243switch (message.Response.Status)
248var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
253return ResponseWithHeaders.FromValue(value, headers, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TableRestClient.cs (104)
93var headers = new TableQueryHeaders(message.Response);
94switch (message.Response.Status)
99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
101return ResponseWithHeaders.FromValue(value, headers, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116var headers = new TableQueryHeaders(message.Response);
117switch (message.Response.Status)
122using var document = JsonDocument.Parse(message.Response.ContentStream);
124return ResponseWithHeaders.FromValue(value, headers, message.Response);
127throw _clientDiagnostics.CreateRequestFailedException(message.Response);
173var headers = new TableCreateHeaders(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return ResponseWithHeaders.FromValue(value, headers, message.Response);
184return ResponseWithHeaders.FromValue((TableResponse)null, headers, message.Response);
186throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
205var headers = new TableCreateHeaders(message.Response);
206switch (message.Response.Status)
211using var document = JsonDocument.Parse(message.Response.ContentStream);
213return ResponseWithHeaders.FromValue(value, headers, message.Response);
216return ResponseWithHeaders.FromValue((TableResponse)null, headers, message.Response);
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
251var headers = new TableDeleteHeaders(message.Response);
252switch (message.Response.Status)
255return ResponseWithHeaders.FromValue(headers, message.Response);
257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
274var headers = new TableDeleteHeaders(message.Response);
275switch (message.Response.Status)
278return ResponseWithHeaders.FromValue(headers, message.Response);
280throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346var headers = new TableQueryEntitiesHeaders(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return ResponseWithHeaders.FromValue(value, headers, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378var headers = new TableQueryEntitiesHeaders(message.Response);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return ResponseWithHeaders.FromValue(value, headers, message.Response);
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
455var headers = new TableQueryEntityWithPartitionAndRowKeyHeaders(message.Response);
456switch (message.Response.Status)
461using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return ResponseWithHeaders.FromValue(value, headers, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
500var headers = new TableQueryEntityWithPartitionAndRowKeyHeaders(message.Response);
501switch (message.Response.Status)
506using var document = JsonDocument.Parse(message.Response.ContentStream);
513return ResponseWithHeaders.FromValue(value, headers, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
593var headers = new TableUpdateEntityHeaders(message.Response);
594switch (message.Response.Status)
597return ResponseWithHeaders.FromValue(headers, message.Response);
599throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
630var headers = new TableUpdateEntityHeaders(message.Response);
631switch (message.Response.Status)
634return ResponseWithHeaders.FromValue(headers, message.Response);
636throw _clientDiagnostics.CreateRequestFailedException(message.Response);
713var headers = new TableMergeEntityHeaders(message.Response);
714switch (message.Response.Status)
717return ResponseWithHeaders.FromValue(headers, message.Response);
719throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
750var headers = new TableMergeEntityHeaders(message.Response);
751switch (message.Response.Status)
754return ResponseWithHeaders.FromValue(headers, message.Response);
756throw _clientDiagnostics.CreateRequestFailedException(message.Response);
820var headers = new TableDeleteEntityHeaders(message.Response);
821switch (message.Response.Status)
824return ResponseWithHeaders.FromValue(headers, message.Response);
826throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
860var headers = new TableDeleteEntityHeaders(message.Response);
861switch (message.Response.Status)
864return ResponseWithHeaders.FromValue(headers, message.Response);
866throw _clientDiagnostics.CreateRequestFailedException(message.Response);
928var headers = new TableInsertEntityHeaders(message.Response);
929switch (message.Response.Status)
934using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
941return ResponseWithHeaders.FromValue(value, headers, message.Response);
944return ResponseWithHeaders.FromValue((IReadOnlyDictionary<string, object>)null, headers, message.Response);
946throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
967var headers = new TableInsertEntityHeaders(message.Response);
968switch (message.Response.Status)
973using var document = JsonDocument.Parse(message.Response.ContentStream);
980return ResponseWithHeaders.FromValue(value, headers, message.Response);
983return ResponseWithHeaders.FromValue((IReadOnlyDictionary<string, object>)null, headers, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1023var headers = new TableGetAccessPolicyHeaders(message.Response);
1024switch (message.Response.Status)
1029var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1039return ResponseWithHeaders.FromValue(value, headers, message.Response);
1042throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1060var headers = new TableGetAccessPolicyHeaders(message.Response);
1061switch (message.Response.Status)
1066var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1076return ResponseWithHeaders.FromValue(value, headers, message.Response);
1079throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1130var headers = new TableSetAccessPolicyHeaders(message.Response);
1131switch (message.Response.Status)
1134return ResponseWithHeaders.FromValue(headers, message.Response);
1136throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1155var headers = new TableSetAccessPolicyHeaders(message.Response);
1156switch (message.Response.Status)
1159return ResponseWithHeaders.FromValue(headers, message.Response);
1161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.DigitalTwins.Core (212)
Customized\DigitalTwinsRestClient.cs (60)
73switch (message.Response.Status)
78return Response.FromValue(value, message.Response);
81return Response.FromValue<Stream>(null, message.Response);
84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111switch (message.Response.Status)
116return Response.FromValue(value, message.Response);
119return Response.FromValue<Stream>(null, message.Response);
122throw _clientDiagnostics.CreateRequestFailedException(message.Response);
147switch (message.Response.Status)
151return message.Response;
154throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
185switch (message.Response.Status)
189return message.Response;
192throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
258switch (message.Response.Status)
263return Response.FromValue(value, message.Response);
266throw _clientDiagnostics.CreateRequestFailedException(message.Response);
292return message.Response.Status switch
294204 => message.Response,
295_ => throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false),
327return message.Response.Status switch
329204 => message.Response,
330_ => throw _clientDiagnostics.CreateRequestFailedException(message.Response),
362switch (message.Response.Status)
366return message.Response;
369throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
405return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
444switch (message.Response.Status)
447return message.Response;
450throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
486switch (message.Response.Status)
489return message.Response;
492throw _clientDiagnostics.CreateRequestFailedException(message.Response);
533switch (message.Response.Status)
536return message.Response;
539throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580switch (message.Response.Status)
583return message.Response;
586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
615switch (message.Response.Status)
619using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
621return Response.FromValue(value, message.Response);
624throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
653switch (message.Response.Status)
657using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
659return Response.FromValue(value, message.Response);
662throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
685switch (message.Response.Status)
689using JsonDocument document = JsonDocument.Parse(message.Response.ContentStream);
691return Response.FromValue(value, message.Response);
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
723switch (message.Response.Status)
727using JsonDocument document = JsonDocument.Parse(message.Response.ContentStream);
729return Response.FromValue(value, message.Response);
732throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DigitalTwinModelsRestClient.cs (44)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
103return Response.FromValue(value, message.Response);
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
141return Response.FromValue(value, message.Response);
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
192switch (message.Response.Status)
197using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
199return Response.FromValue(value, message.Response);
202throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
224switch (message.Response.Status)
229using var document = JsonDocument.Parse(message.Response.ContentStream);
231return Response.FromValue(value, message.Response);
234throw _clientDiagnostics.CreateRequestFailedException(message.Response);
281switch (message.Response.Status)
286using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
288return Response.FromValue(value, message.Response);
291throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
319switch (message.Response.Status)
324using var document = JsonDocument.Parse(message.Response.ContentStream);
326return Response.FromValue(value, message.Response);
329throw _clientDiagnostics.CreateRequestFailedException(message.Response);
388switch (message.Response.Status)
391return message.Response;
393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
428switch (message.Response.Status)
431return message.Response;
433throw _clientDiagnostics.CreateRequestFailedException(message.Response);
477switch (message.Response.Status)
480return message.Response;
482throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
511switch (message.Response.Status)
514return message.Response;
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
567using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
569return Response.FromValue(value, message.Response);
572throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
601switch (message.Response.Status)
606using var document = JsonDocument.Parse(message.Response.ContentStream);
608return Response.FromValue(value, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DigitalTwinsRestClient.cs (46)
84switch (message.Response.Status)
89return Response.FromValue(value, message.Response);
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
177return message.Response;
179throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
208switch (message.Response.Status)
211return message.Response;
213throw _clientDiagnostics.CreateRequestFailedException(message.Response);
290switch (message.Response.Status)
295return Response.FromValue(value, message.Response);
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
330switch (message.Response.Status)
335return Response.FromValue(value, message.Response);
338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
418switch (message.Response.Status)
421return message.Response;
423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
457switch (message.Response.Status)
460return message.Response;
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
554switch (message.Response.Status)
559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
561return Response.FromValue(value, message.Response);
564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
590switch (message.Response.Status)
595using var document = JsonDocument.Parse(message.Response.ContentStream);
597return Response.FromValue(value, message.Response);
600throw _clientDiagnostics.CreateRequestFailedException(message.Response);
701switch (message.Response.Status)
706return Response.FromValue(value, message.Response);
709throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
741switch (message.Response.Status)
746return Response.FromValue(value, message.Response);
749throw _clientDiagnostics.CreateRequestFailedException(message.Response);
836switch (message.Response.Status)
841using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
843return Response.FromValue(value, message.Response);
846throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
877switch (message.Response.Status)
882using var document = JsonDocument.Parse(message.Response.ContentStream);
884return Response.FromValue(value, message.Response);
887throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventRoutesRestClient.cs (36)
74switch (message.Response.Status)
79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
81return Response.FromValue(value, message.Response);
84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
99switch (message.Response.Status)
104using var document = JsonDocument.Parse(message.Response.ContentStream);
106return Response.FromValue(value, message.Response);
109throw _clientDiagnostics.CreateRequestFailedException(message.Response);
148switch (message.Response.Status)
153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
155return Response.FromValue(value, message.Response);
158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
182switch (message.Response.Status)
187using var document = JsonDocument.Parse(message.Response.ContentStream);
189return Response.FromValue(value, message.Response);
192throw _clientDiagnostics.CreateRequestFailedException(message.Response);
242switch (message.Response.Status)
245return message.Response;
247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
275switch (message.Response.Status)
278return message.Response;
280throw _clientDiagnostics.CreateRequestFailedException(message.Response);
319switch (message.Response.Status)
322return message.Response;
324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
348switch (message.Response.Status)
351return message.Response;
353throw _clientDiagnostics.CreateRequestFailedException(message.Response);
392switch (message.Response.Status)
397using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
399return Response.FromValue(value, message.Response);
402throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
424switch (message.Response.Status)
429using var document = JsonDocument.Parse(message.Response.ContentStream);
431return Response.FromValue(value, message.Response);
434throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Graph.Rbac (548)
Generated\ApplicationsRestOperations.cs (116)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
222return message.Response;
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
280switch (message.Response.Status)
285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
287return Response.FromValue(value, message.Response);
290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
360switch (message.Response.Status)
363return message.Response;
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
508switch (message.Response.Status)
511return message.Response;
513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
535switch (message.Response.Status)
538return message.Response;
540throw _clientDiagnostics.CreateRequestFailedException(message.Response);
581switch (message.Response.Status)
584return message.Response;
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
611return message.Response;
613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
648switch (message.Response.Status)
653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
655return Response.FromValue(value, message.Response);
658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
675switch (message.Response.Status)
680using var document = JsonDocument.Parse(message.Response.ContentStream);
682return Response.FromValue(value, message.Response);
685throw _clientDiagnostics.CreateRequestFailedException(message.Response);
729switch (message.Response.Status)
732return message.Response;
734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
756switch (message.Response.Status)
759return message.Response;
761throw _clientDiagnostics.CreateRequestFailedException(message.Response);
796switch (message.Response.Status)
801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
803return Response.FromValue(value, message.Response);
806throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
823switch (message.Response.Status)
828using var document = JsonDocument.Parse(message.Response.ContentStream);
830return Response.FromValue(value, message.Response);
833throw _clientDiagnostics.CreateRequestFailedException(message.Response);
877switch (message.Response.Status)
880return message.Response;
882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
904switch (message.Response.Status)
907return message.Response;
909throw _clientDiagnostics.CreateRequestFailedException(message.Response);
944switch (message.Response.Status)
949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
951return Response.FromValue(value, message.Response);
954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
971switch (message.Response.Status)
976using var document = JsonDocument.Parse(message.Response.ContentStream);
978return Response.FromValue(value, message.Response);
981throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1015switch (message.Response.Status)
1020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1022return Response.FromValue(value, message.Response);
1025throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1042switch (message.Response.Status)
1047using var document = JsonDocument.Parse(message.Response.ContentStream);
1049return Response.FromValue(value, message.Response);
1052throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1087switch (message.Response.Status)
1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1094return Response.FromValue(value, message.Response);
1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1119switch (message.Response.Status)
1124using var document = JsonDocument.Parse(message.Response.ContentStream);
1126return Response.FromValue(value, message.Response);
1129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1159switch (message.Response.Status)
1164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1166return Response.FromValue(value, message.Response);
1169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1186switch (message.Response.Status)
1191using var document = JsonDocument.Parse(message.Response.ContentStream);
1193return Response.FromValue(value, message.Response);
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DeletedApplicationsRestOperations.cs (38)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111switch (message.Response.Status)
116using var document = JsonDocument.Parse(message.Response.ContentStream);
118return Response.FromValue(value, message.Response);
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return Response.FromValue(value, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173switch (message.Response.Status)
178using var document = JsonDocument.Parse(message.Response.ContentStream);
180return Response.FromValue(value, message.Response);
183throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
220return message.Response;
222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
285return Response.FromValue(value, message.Response);
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
310using var document = JsonDocument.Parse(message.Response.ContentStream);
312return Response.FromValue(value, message.Response);
315throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
352return Response.FromValue(value, message.Response);
355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
372switch (message.Response.Status)
377using var document = JsonDocument.Parse(message.Response.ContentStream);
379return Response.FromValue(value, message.Response);
382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GroupsRestOperations.cs (126)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
167return message.Response;
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
194return message.Response;
196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
240switch (message.Response.Status)
243return message.Response;
245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
267switch (message.Response.Status)
270return message.Response;
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
316return Response.FromValue(value, message.Response);
319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
336switch (message.Response.Status)
341using var document = JsonDocument.Parse(message.Response.ContentStream);
343return Response.FromValue(value, message.Response);
346throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
384return Response.FromValue(value, message.Response);
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
398switch (message.Response.Status)
403using var document = JsonDocument.Parse(message.Response.ContentStream);
405return Response.FromValue(value, message.Response);
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
470switch (message.Response.Status)
475using var document = JsonDocument.Parse(message.Response.ContentStream);
477return Response.FromValue(value, message.Response);
480throw _clientDiagnostics.CreateRequestFailedException(message.Response);
514switch (message.Response.Status)
519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
521return Response.FromValue(value, message.Response);
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
541switch (message.Response.Status)
546using var document = JsonDocument.Parse(message.Response.ContentStream);
548return Response.FromValue(value, message.Response);
551throw _clientDiagnostics.CreateRequestFailedException(message.Response);
585switch (message.Response.Status)
588return message.Response;
590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
656switch (message.Response.Status)
661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
663return Response.FromValue(value, message.Response);
666throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
693using var document = JsonDocument.Parse(message.Response.ContentStream);
695return Response.FromValue(value, message.Response);
698throw _clientDiagnostics.CreateRequestFailedException(message.Response);
733switch (message.Response.Status)
738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
740return Response.FromValue(value, message.Response);
743throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
760switch (message.Response.Status)
765using var document = JsonDocument.Parse(message.Response.ContentStream);
767return Response.FromValue(value, message.Response);
770throw _clientDiagnostics.CreateRequestFailedException(message.Response);
814switch (message.Response.Status)
817return message.Response;
819throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
841switch (message.Response.Status)
844return message.Response;
846throw _clientDiagnostics.CreateRequestFailedException(message.Response);
887switch (message.Response.Status)
890return message.Response;
892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
914switch (message.Response.Status)
917return message.Response;
919throw _clientDiagnostics.CreateRequestFailedException(message.Response);
953switch (message.Response.Status)
958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
960return Response.FromValue(value, message.Response);
963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
980switch (message.Response.Status)
985using var document = JsonDocument.Parse(message.Response.ContentStream);
987return Response.FromValue(value, message.Response);
990throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1024switch (message.Response.Status)
1029using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1031return Response.FromValue(value, message.Response);
1034throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1051switch (message.Response.Status)
1056using var document = JsonDocument.Parse(message.Response.ContentStream);
1058return Response.FromValue(value, message.Response);
1061throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1096switch (message.Response.Status)
1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1103return Response.FromValue(value, message.Response);
1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1128switch (message.Response.Status)
1133using var document = JsonDocument.Parse(message.Response.ContentStream);
1135return Response.FromValue(value, message.Response);
1138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1168switch (message.Response.Status)
1173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1175return Response.FromValue(value, message.Response);
1178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1195switch (message.Response.Status)
1200using var document = JsonDocument.Parse(message.Response.ContentStream);
1202return Response.FromValue(value, message.Response);
1205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1235switch (message.Response.Status)
1240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1242return Response.FromValue(value, message.Response);
1245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1262switch (message.Response.Status)
1267using var document = JsonDocument.Parse(message.Response.ContentStream);
1269return Response.FromValue(value, message.Response);
1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\OAuth2PermissionGrantRestOperations.cs (38)
80switch (message.Response.Status)
85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
87return Response.FromValue(value, message.Response);
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
152return Response.FromValue(value, message.Response);
155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
166switch (message.Response.Status)
171using var document = JsonDocument.Parse(message.Response.ContentStream);
173return Response.FromValue(value, message.Response);
176throw _clientDiagnostics.CreateRequestFailedException(message.Response);
210switch (message.Response.Status)
213return message.Response;
215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
235return message.Response;
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
271switch (message.Response.Status)
276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
278return Response.FromValue(value, message.Response);
281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
338switch (message.Response.Status)
343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
345return Response.FromValue(value, message.Response);
348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
365switch (message.Response.Status)
370using var document = JsonDocument.Parse(message.Response.ContentStream);
372return Response.FromValue(value, message.Response);
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ObjectsRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
157switch (message.Response.Status)
162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
164return Response.FromValue(value, message.Response);
167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
184switch (message.Response.Status)
189using var document = JsonDocument.Parse(message.Response.ContentStream);
191return Response.FromValue(value, message.Response);
194throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
231return Response.FromValue(value, message.Response);
234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251switch (message.Response.Status)
256using var document = JsonDocument.Parse(message.Response.ContentStream);
258return Response.FromValue(value, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServicePrincipalsRestOperations.cs (96)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
228switch (message.Response.Status)
231return message.Response;
233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
255switch (message.Response.Status)
258return message.Response;
260throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
297return message.Response;
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
319return message.Response;
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
362return Response.FromValue(value, message.Response);
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
499switch (message.Response.Status)
504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
506return Response.FromValue(value, message.Response);
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
580switch (message.Response.Status)
583return message.Response;
585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
647switch (message.Response.Status)
652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
654return Response.FromValue(value, message.Response);
657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
674switch (message.Response.Status)
679using var document = JsonDocument.Parse(message.Response.ContentStream);
681return Response.FromValue(value, message.Response);
684throw _clientDiagnostics.CreateRequestFailedException(message.Response);
728switch (message.Response.Status)
731return message.Response;
733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
755switch (message.Response.Status)
758return message.Response;
760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
794switch (message.Response.Status)
799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
801return Response.FromValue(value, message.Response);
804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
821switch (message.Response.Status)
826using var document = JsonDocument.Parse(message.Response.ContentStream);
828return Response.FromValue(value, message.Response);
831throw _clientDiagnostics.CreateRequestFailedException(message.Response);
866switch (message.Response.Status)
871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
873return Response.FromValue(value, message.Response);
876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
898switch (message.Response.Status)
903using var document = JsonDocument.Parse(message.Response.ContentStream);
905return Response.FromValue(value, message.Response);
908throw _clientDiagnostics.CreateRequestFailedException(message.Response);
938switch (message.Response.Status)
943using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
945return Response.FromValue(value, message.Response);
948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
965switch (message.Response.Status)
970using var document = JsonDocument.Parse(message.Response.ContentStream);
972return Response.FromValue(value, message.Response);
975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SignedInUserRestOperations.cs (32)
75switch (message.Response.Status)
80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
82return Response.FromValue(value, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
95switch (message.Response.Status)
100using var document = JsonDocument.Parse(message.Response.ContentStream);
102return Response.FromValue(value, message.Response);
105throw _clientDiagnostics.CreateRequestFailedException(message.Response);
131switch (message.Response.Status)
136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
138return Response.FromValue(value, message.Response);
141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
195switch (message.Response.Status)
200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
202return Response.FromValue(value, message.Response);
205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
222switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
289switch (message.Response.Status)
294using var document = JsonDocument.Parse(message.Response.ContentStream);
296return Response.FromValue(value, message.Response);
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\UsersRestOperations.cs (60)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
226return Response.FromValue(value, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
246switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
299switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
365switch (message.Response.Status)
368return message.Response;
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
436switch (message.Response.Status)
441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
443return Response.FromValue(value, message.Response);
446throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
468switch (message.Response.Status)
473using var document = JsonDocument.Parse(message.Response.ContentStream);
475return Response.FromValue(value, message.Response);
478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
512switch (message.Response.Status)
517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
519return Response.FromValue(value, message.Response);
522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
539switch (message.Response.Status)
544using var document = JsonDocument.Parse(message.Response.ContentStream);
546return Response.FromValue(value, message.Response);
549throw _clientDiagnostics.CreateRequestFailedException(message.Response);
579switch (message.Response.Status)
584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
586return Response.FromValue(value, message.Response);
589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
611using var document = JsonDocument.Parse(message.Response.ContentStream);
613return Response.FromValue(value, message.Response);
616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Identity (3)
Azure.IoT.DeviceUpdate (382)
Generated\DeploymentsRestClient.cs (78)
76switch (message.Response.Status)
81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
83return Response.FromValue(value, message.Response);
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
97switch (message.Response.Status)
102using var document = JsonDocument.Parse(message.Response.ContentStream);
104return Response.FromValue(value, message.Response);
107throw _clientDiagnostics.CreateRequestFailedException(message.Response);
141switch (message.Response.Status)
146using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
148return Response.FromValue(value, message.Response);
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
168switch (message.Response.Status)
173using var document = JsonDocument.Parse(message.Response.ContentStream);
175return Response.FromValue(value, message.Response);
178throw _clientDiagnostics.CreateRequestFailedException(message.Response);
221switch (message.Response.Status)
226using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
228return Response.FromValue(value, message.Response);
231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
253switch (message.Response.Status)
258using var document = JsonDocument.Parse(message.Response.ContentStream);
260return Response.FromValue(value, message.Response);
263throw _clientDiagnostics.CreateRequestFailedException(message.Response);
296switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
318switch (message.Response.Status)
321return message.Response;
323throw _clientDiagnostics.CreateRequestFailedException(message.Response);
358switch (message.Response.Status)
363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
365return Response.FromValue(value, message.Response);
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
385switch (message.Response.Status)
390using var document = JsonDocument.Parse(message.Response.ContentStream);
392return Response.FromValue(value, message.Response);
395throw _clientDiagnostics.CreateRequestFailedException(message.Response);
435switch (message.Response.Status)
440using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
442return Response.FromValue(value, message.Response);
445throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
463switch (message.Response.Status)
468using var document = JsonDocument.Parse(message.Response.ContentStream);
470return Response.FromValue(value, message.Response);
473throw _clientDiagnostics.CreateRequestFailedException(message.Response);
508switch (message.Response.Status)
513using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
515return Response.FromValue(value, message.Response);
518throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
535switch (message.Response.Status)
540using var document = JsonDocument.Parse(message.Response.ContentStream);
542return Response.FromValue(value, message.Response);
545throw _clientDiagnostics.CreateRequestFailedException(message.Response);
580switch (message.Response.Status)
585using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
587return Response.FromValue(value, message.Response);
590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
612using var document = JsonDocument.Parse(message.Response.ContentStream);
614return Response.FromValue(value, message.Response);
617throw _clientDiagnostics.CreateRequestFailedException(message.Response);
649switch (message.Response.Status)
654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
656return Response.FromValue(value, message.Response);
659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
677switch (message.Response.Status)
682using var document = JsonDocument.Parse(message.Response.ContentStream);
684return Response.FromValue(value, message.Response);
687throw _clientDiagnostics.CreateRequestFailedException(message.Response);
724switch (message.Response.Status)
729using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
731return Response.FromValue(value, message.Response);
734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
757switch (message.Response.Status)
762using var document = JsonDocument.Parse(message.Response.ContentStream);
764return Response.FromValue(value, message.Response);
767throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DevicesRestClient.cs (174)
71switch (message.Response.Status)
76using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
78return Response.FromValue(value, message.Response);
81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
91switch (message.Response.Status)
96using var document = JsonDocument.Parse(message.Response.ContentStream);
98return Response.FromValue(value, message.Response);
101throw _clientDiagnostics.CreateRequestFailedException(message.Response);
135switch (message.Response.Status)
140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
142return Response.FromValue(value, message.Response);
145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
162switch (message.Response.Status)
167using var document = JsonDocument.Parse(message.Response.ContentStream);
169return Response.FromValue(value, message.Response);
172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
207switch (message.Response.Status)
212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
214return Response.FromValue(value, message.Response);
217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
234switch (message.Response.Status)
239using var document = JsonDocument.Parse(message.Response.ContentStream);
241return Response.FromValue(value, message.Response);
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
279switch (message.Response.Status)
284using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
286return Response.FromValue(value, message.Response);
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
311using var document = JsonDocument.Parse(message.Response.ContentStream);
313return Response.FromValue(value, message.Response);
316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
368switch (message.Response.Status)
373using var document = JsonDocument.Parse(message.Response.ContentStream);
375return Response.FromValue(value, message.Response);
378throw _clientDiagnostics.CreateRequestFailedException(message.Response);
412switch (message.Response.Status)
417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
419return Response.FromValue(value, message.Response);
422throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
439switch (message.Response.Status)
444using var document = JsonDocument.Parse(message.Response.ContentStream);
446return Response.FromValue(value, message.Response);
449throw _clientDiagnostics.CreateRequestFailedException(message.Response);
475switch (message.Response.Status)
480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
482return Response.FromValue(value, message.Response);
485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
495switch (message.Response.Status)
500using var document = JsonDocument.Parse(message.Response.ContentStream);
502return Response.FromValue(value, message.Response);
505throw _clientDiagnostics.CreateRequestFailedException(message.Response);
531switch (message.Response.Status)
536using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
538return Response.FromValue(value, message.Response);
541throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
551switch (message.Response.Status)
556using var document = JsonDocument.Parse(message.Response.ContentStream);
558return Response.FromValue(value, message.Response);
561throw _clientDiagnostics.CreateRequestFailedException(message.Response);
595switch (message.Response.Status)
600using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
602return Response.FromValue(value, message.Response);
605throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
622switch (message.Response.Status)
627using var document = JsonDocument.Parse(message.Response.ContentStream);
629return Response.FromValue(value, message.Response);
632throw _clientDiagnostics.CreateRequestFailedException(message.Response);
658switch (message.Response.Status)
663using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
665return Response.FromValue(value, message.Response);
668throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
678switch (message.Response.Status)
683using var document = JsonDocument.Parse(message.Response.ContentStream);
685return Response.FromValue(value, message.Response);
688throw _clientDiagnostics.CreateRequestFailedException(message.Response);
722switch (message.Response.Status)
727using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
729return Response.FromValue(value, message.Response);
732throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
749switch (message.Response.Status)
754using var document = JsonDocument.Parse(message.Response.ContentStream);
756return Response.FromValue(value, message.Response);
759throw _clientDiagnostics.CreateRequestFailedException(message.Response);
802switch (message.Response.Status)
807using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
809return Response.FromValue(value, message.Response);
812throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
834switch (message.Response.Status)
839using var document = JsonDocument.Parse(message.Response.ContentStream);
841return Response.FromValue(value, message.Response);
844throw _clientDiagnostics.CreateRequestFailedException(message.Response);
877switch (message.Response.Status)
881return message.Response;
883throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
900switch (message.Response.Status)
904return message.Response;
906throw _clientDiagnostics.CreateRequestFailedException(message.Response);
941switch (message.Response.Status)
946using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
948return Response.FromValue(value, message.Response);
951throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
968switch (message.Response.Status)
973using var document = JsonDocument.Parse(message.Response.ContentStream);
975return Response.FromValue(value, message.Response);
978throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1018switch (message.Response.Status)
1023using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1025return Response.FromValue(value, message.Response);
1028throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1046switch (message.Response.Status)
1051using var document = JsonDocument.Parse(message.Response.ContentStream);
1053return Response.FromValue(value, message.Response);
1056throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1087switch (message.Response.Status)
1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1094return Response.FromValue(value, message.Response);
1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1114switch (message.Response.Status)
1119using var document = JsonDocument.Parse(message.Response.ContentStream);
1121return Response.FromValue(value, message.Response);
1124throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1160switch (message.Response.Status)
1165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1167return Response.FromValue(value, message.Response);
1170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1192switch (message.Response.Status)
1197using var document = JsonDocument.Parse(message.Response.ContentStream);
1199return Response.FromValue(value, message.Response);
1202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1238switch (message.Response.Status)
1243using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1245return Response.FromValue(value, message.Response);
1248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1270switch (message.Response.Status)
1275using var document = JsonDocument.Parse(message.Response.ContentStream);
1277return Response.FromValue(value, message.Response);
1280throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1312switch (message.Response.Status)
1317using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1319return Response.FromValue(value, message.Response);
1322throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1340switch (message.Response.Status)
1345using var document = JsonDocument.Parse(message.Response.ContentStream);
1347return Response.FromValue(value, message.Response);
1350throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1381switch (message.Response.Status)
1386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1388return Response.FromValue(value, message.Response);
1391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1408switch (message.Response.Status)
1413using var document = JsonDocument.Parse(message.Response.ContentStream);
1415return Response.FromValue(value, message.Response);
1418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1449switch (message.Response.Status)
1454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1456return Response.FromValue(value, message.Response);
1459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1476switch (message.Response.Status)
1481using var document = JsonDocument.Parse(message.Response.ContentStream);
1483return Response.FromValue(value, message.Response);
1486throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1523switch (message.Response.Status)
1528using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1530return Response.FromValue(value, message.Response);
1533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1556switch (message.Response.Status)
1561using var document = JsonDocument.Parse(message.Response.ContentStream);
1563return Response.FromValue(value, message.Response);
1566throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\UpdatesRestClient.cs (128)
82var headers = new UpdatesImportUpdateHeaders(message.Response);
83switch (message.Response.Status)
86return ResponseWithHeaders.FromValue(headers, message.Response);
88throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
105var headers = new UpdatesImportUpdateHeaders(message.Response);
106switch (message.Response.Status)
109return ResponseWithHeaders.FromValue(headers, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
171return Response.FromValue(value, message.Response);
174return Response.FromValue((Update)null, message.Response);
176throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
204switch (message.Response.Status)
209using var document = JsonDocument.Parse(message.Response.ContentStream);
211return Response.FromValue(value, message.Response);
214return Response.FromValue((Update)null, message.Response);
216throw _clientDiagnostics.CreateRequestFailedException(message.Response);
263var headers = new UpdatesDeleteUpdateHeaders(message.Response);
264switch (message.Response.Status)
267return ResponseWithHeaders.FromValue(headers, message.Response);
269throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296var headers = new UpdatesDeleteUpdateHeaders(message.Response);
297switch (message.Response.Status)
300return ResponseWithHeaders.FromValue(headers, message.Response);
302throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
333using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
335return Response.FromValue(value, message.Response);
338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
348switch (message.Response.Status)
353using var document = JsonDocument.Parse(message.Response.ContentStream);
355return Response.FromValue(value, message.Response);
358throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
400return Response.FromValue(value, message.Response);
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
420switch (message.Response.Status)
425using var document = JsonDocument.Parse(message.Response.ContentStream);
427return Response.FromValue(value, message.Response);
430throw _clientDiagnostics.CreateRequestFailedException(message.Response);
472switch (message.Response.Status)
477using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
479return Response.FromValue(value, message.Response);
482throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
504switch (message.Response.Status)
509using var document = JsonDocument.Parse(message.Response.ContentStream);
511return Response.FromValue(value, message.Response);
514throw _clientDiagnostics.CreateRequestFailedException(message.Response);
563switch (message.Response.Status)
568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
570return Response.FromValue(value, message.Response);
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
605using var document = JsonDocument.Parse(message.Response.ContentStream);
607return Response.FromValue(value, message.Response);
610throw _clientDiagnostics.CreateRequestFailedException(message.Response);
670switch (message.Response.Status)
675using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
677return Response.FromValue(value, message.Response);
680return Response.FromValue((File)null, message.Response);
682throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
715switch (message.Response.Status)
720using var document = JsonDocument.Parse(message.Response.ContentStream);
722return Response.FromValue(value, message.Response);
725return Response.FromValue((File)null, message.Response);
727throw _clientDiagnostics.CreateRequestFailedException(message.Response);
763switch (message.Response.Status)
768using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
770return Response.FromValue(value, message.Response);
773throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
785switch (message.Response.Status)
790using var document = JsonDocument.Parse(message.Response.ContentStream);
792return Response.FromValue(value, message.Response);
795throw _clientDiagnostics.CreateRequestFailedException(message.Response);
834var headers = new UpdatesGetOperationHeaders(message.Response);
835switch (message.Response.Status)
840using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
842return ResponseWithHeaders.FromValue(value, headers, message.Response);
845return ResponseWithHeaders.FromValue((Models.Operation)null, headers, message.Response);
847throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
865var headers = new UpdatesGetOperationHeaders(message.Response);
866switch (message.Response.Status)
871using var document = JsonDocument.Parse(message.Response.ContentStream);
873return ResponseWithHeaders.FromValue(value, headers, message.Response);
876return ResponseWithHeaders.FromValue((Models.Operation)null, headers, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
909switch (message.Response.Status)
914using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
916return Response.FromValue(value, message.Response);
919throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
936switch (message.Response.Status)
941using var document = JsonDocument.Parse(message.Response.ContentStream);
943return Response.FromValue(value, message.Response);
946throw _clientDiagnostics.CreateRequestFailedException(message.Response);
982switch (message.Response.Status)
987using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
989return Response.FromValue(value, message.Response);
992throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1014switch (message.Response.Status)
1019using var document = JsonDocument.Parse(message.Response.ContentStream);
1021return Response.FromValue(value, message.Response);
1024throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1065switch (message.Response.Status)
1070using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1072return Response.FromValue(value, message.Response);
1075throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1102switch (message.Response.Status)
1107using var document = JsonDocument.Parse(message.Response.ContentStream);
1109return Response.FromValue(value, message.Response);
1112throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1158switch (message.Response.Status)
1163using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1165return Response.FromValue(value, message.Response);
1168throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1200switch (message.Response.Status)
1205using var document = JsonDocument.Parse(message.Response.ContentStream);
1207return Response.FromValue(value, message.Response);
1210throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1243switch (message.Response.Status)
1248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1250return Response.FromValue(value, message.Response);
1253throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1272switch (message.Response.Status)
1277using var document = JsonDocument.Parse(message.Response.ContentStream);
1279return Response.FromValue(value, message.Response);
1282throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.IoT.Hub.Service (296)
Generated\ConfigurationRestClient.cs (44)
75switch (message.Response.Status)
80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
82return Response.FromValue(value, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
102switch (message.Response.Status)
107using var document = JsonDocument.Parse(message.Response.ContentStream);
109return Response.FromValue(value, message.Response);
112throw _clientDiagnostics.CreateRequestFailedException(message.Response);
158switch (message.Response.Status)
164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
166return Response.FromValue(value, message.Response);
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
198using var document = JsonDocument.Parse(message.Response.ContentStream);
200return Response.FromValue(value, message.Response);
203throw _clientDiagnostics.CreateRequestFailedException(message.Response);
239switch (message.Response.Status)
242return message.Response;
244throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
262switch (message.Response.Status)
265return message.Response;
267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
296switch (message.Response.Status)
301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
322switch (message.Response.Status)
327using var document = JsonDocument.Parse(message.Response.ContentStream);
334return Response.FromValue(value, message.Response);
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
372switch (message.Response.Status)
377using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
379return Response.FromValue(value, message.Response);
382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
399switch (message.Response.Status)
404using var document = JsonDocument.Parse(message.Response.ContentStream);
406return Response.FromValue(value, message.Response);
409throw _clientDiagnostics.CreateRequestFailedException(message.Response);
450switch (message.Response.Status)
453return message.Response;
455throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
477switch (message.Response.Status)
480return message.Response;
482throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DevicesRestClient.cs (62)
72switch (message.Response.Status)
77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
98switch (message.Response.Status)
103using var document = JsonDocument.Parse(message.Response.ContentStream);
110return Response.FromValue(value, message.Response);
113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
152return Response.FromValue(value, message.Response);
155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
172switch (message.Response.Status)
177using var document = JsonDocument.Parse(message.Response.ContentStream);
179return Response.FromValue(value, message.Response);
182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
228switch (message.Response.Status)
233using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
235return Response.FromValue(value, message.Response);
238throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
261switch (message.Response.Status)
266using var document = JsonDocument.Parse(message.Response.ContentStream);
268return Response.FromValue(value, message.Response);
271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
307switch (message.Response.Status)
310return message.Response;
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
330switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
367switch (message.Response.Status)
372using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
374return Response.FromValue(value, message.Response);
377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
394switch (message.Response.Status)
399using var document = JsonDocument.Parse(message.Response.ContentStream);
401return Response.FromValue(value, message.Response);
404throw _clientDiagnostics.CreateRequestFailedException(message.Response);
450switch (message.Response.Status)
455using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
457return Response.FromValue(value, message.Response);
460throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
483switch (message.Response.Status)
488using var document = JsonDocument.Parse(message.Response.ContentStream);
490return Response.FromValue(value, message.Response);
493throw _clientDiagnostics.CreateRequestFailedException(message.Response);
539switch (message.Response.Status)
544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
546return Response.FromValue(value, message.Response);
549throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
572switch (message.Response.Status)
577using var document = JsonDocument.Parse(message.Response.ContentStream);
579return Response.FromValue(value, message.Response);
582throw _clientDiagnostics.CreateRequestFailedException(message.Response);
624switch (message.Response.Status)
629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
631return Response.FromValue(value, message.Response);
634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestClient.cs (56)
78switch (message.Response.Status)
83using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
85return Response.FromValue(value, message.Response);
88throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
105switch (message.Response.Status)
110using var document = JsonDocument.Parse(message.Response.ContentStream);
112return Response.FromValue(value, message.Response);
115throw _clientDiagnostics.CreateRequestFailedException(message.Response);
139switch (message.Response.Status)
144using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
151return Response.FromValue(value, message.Response);
154throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
164switch (message.Response.Status)
169using var document = JsonDocument.Parse(message.Response.ContentStream);
176return Response.FromValue(value, message.Response);
179throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
243using var document = JsonDocument.Parse(message.Response.ContentStream);
245return Response.FromValue(value, message.Response);
248throw _clientDiagnostics.CreateRequestFailedException(message.Response);
280switch (message.Response.Status)
285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
287return Response.FromValue(value, message.Response);
290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
358switch (message.Response.Status)
363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
365return Response.FromValue(value, message.Response);
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
395using var document = JsonDocument.Parse(message.Response.ContentStream);
397return Response.FromValue(value, message.Response);
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
440return Response.FromValue(value, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
504switch (message.Response.Status)
509using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
511return Response.FromValue(value, message.Response);
514throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModulesRestClient.cs (62)
82switch (message.Response.Status)
87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
89return Response.FromValue(value, message.Response);
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119using var document = JsonDocument.Parse(message.Response.ContentStream);
121return Response.FromValue(value, message.Response);
124throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
220using var document = JsonDocument.Parse(message.Response.ContentStream);
222return Response.FromValue(value, message.Response);
225throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
285return Response.FromValue(value, message.Response);
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
321using var document = JsonDocument.Parse(message.Response.ContentStream);
323return Response.FromValue(value, message.Response);
326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
359switch (message.Response.Status)
364using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
371return Response.FromValue(value, message.Response);
374throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
391switch (message.Response.Status)
396using var document = JsonDocument.Parse(message.Response.ContentStream);
403return Response.FromValue(value, message.Response);
406throw _clientDiagnostics.CreateRequestFailedException(message.Response);
445switch (message.Response.Status)
450using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
452return Response.FromValue(value, message.Response);
455throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
477switch (message.Response.Status)
482using var document = JsonDocument.Parse(message.Response.ContentStream);
484return Response.FromValue(value, message.Response);
487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
540switch (message.Response.Status)
546using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
548return Response.FromValue(value, message.Response);
551throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
585using var document = JsonDocument.Parse(message.Response.ContentStream);
587return Response.FromValue(value, message.Response);
590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
633switch (message.Response.Status)
636return message.Response;
638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
661switch (message.Response.Status)
664return message.Response;
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
715switch (message.Response.Status)
720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
722return Response.FromValue(value, message.Response);
725throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
752switch (message.Response.Status)
757using var document = JsonDocument.Parse(message.Response.ContentStream);
759return Response.FromValue(value, message.Response);
762throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.IoT.ModelsRepository (6)
Azure.IoT.TimeSeriesInsights (106)
Generated\QueryRestClient.cs (24)
79switch (message.Response.Status)
84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
86return Response.FromValue(value, message.Response);
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
157switch (message.Response.Status)
162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
164return Response.FromValue(value, message.Response);
167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
186switch (message.Response.Status)
191using var document = JsonDocument.Parse(message.Response.ContentStream);
193return Response.FromValue(value, message.Response);
196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
247switch (message.Response.Status)
252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
254return Response.FromValue(value, message.Response);
257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
277switch (message.Response.Status)
282using var document = JsonDocument.Parse(message.Response.ContentStream);
284return Response.FromValue(value, message.Response);
287throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TimeSeriesInstancesRestClient.cs (32)
79switch (message.Response.Status)
84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
86return Response.FromValue(value, message.Response);
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return Response.FromValue(value, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
180switch (message.Response.Status)
185using var document = JsonDocument.Parse(message.Response.ContentStream);
187return Response.FromValue(value, message.Response);
190throw _clientDiagnostics.CreateRequestFailedException(message.Response);
231switch (message.Response.Status)
236using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
238return Response.FromValue(value, message.Response);
241throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
259switch (message.Response.Status)
264using var document = JsonDocument.Parse(message.Response.ContentStream);
266return Response.FromValue(value, message.Response);
269throw _clientDiagnostics.CreateRequestFailedException(message.Response);
315switch (message.Response.Status)
320using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
322return Response.FromValue(value, message.Response);
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
344switch (message.Response.Status)
349using var document = JsonDocument.Parse(message.Response.ContentStream);
351return Response.FromValue(value, message.Response);
354throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Media.VideoAnalyzer.Edge (2)
Azure.Messaging.EventGrid (36)
Azure.Messaging.WebPubSub (138)
Azure.MixedReality.Authentication (12)
Azure.MixedReality.ObjectAnchors.Conversion (32)
Generated\IngestionJobRestClient.cs (20)
80var headers = new IngestionJobCreateHeaders(message.Response);
81switch (message.Response.Status)
86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
88return ResponseWithHeaders.FromValue(value, headers, message.Response);
91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
105var headers = new IngestionJobCreateHeaders(message.Response);
106switch (message.Response.Status)
111using var document = JsonDocument.Parse(message.Response.ContentStream);
113return ResponseWithHeaders.FromValue(value, headers, message.Response);
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
153var headers = new IngestionJobGetHeaders(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return ResponseWithHeaders.FromValue(value, headers, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
177var headers = new IngestionJobGetHeaders(message.Response);
178switch (message.Response.Status)
183using var document = JsonDocument.Parse(message.Response.ContentStream);
185return ResponseWithHeaders.FromValue(value, headers, message.Response);
188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.MixedReality.RemoteRendering (92)
Generated\RemoteRenderingRestClient.cs (90)
88var headers = new RemoteRenderingCreateConversionHeaders(message.Response);
89switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return ResponseWithHeaders.FromValue(value, headers, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123var headers = new RemoteRenderingCreateConversionHeaders(message.Response);
124switch (message.Response.Status)
130using var document = JsonDocument.Parse(message.Response.ContentStream);
132return ResponseWithHeaders.FromValue(value, headers, message.Response);
135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
170var headers = new RemoteRenderingGetConversionHeaders(message.Response);
171switch (message.Response.Status)
176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
178return ResponseWithHeaders.FromValue(value, headers, message.Response);
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
199var headers = new RemoteRenderingGetConversionHeaders(message.Response);
200switch (message.Response.Status)
205using var document = JsonDocument.Parse(message.Response.ContentStream);
207return ResponseWithHeaders.FromValue(value, headers, message.Response);
210throw _clientDiagnostics.CreateRequestFailedException(message.Response);
237var headers = new RemoteRenderingListConversionsHeaders(message.Response);
238switch (message.Response.Status)
243using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
245return ResponseWithHeaders.FromValue(value, headers, message.Response);
248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
259var headers = new RemoteRenderingListConversionsHeaders(message.Response);
260switch (message.Response.Status)
265using var document = JsonDocument.Parse(message.Response.ContentStream);
267return ResponseWithHeaders.FromValue(value, headers, message.Response);
270throw _clientDiagnostics.CreateRequestFailedException(message.Response);
314var headers = new RemoteRenderingCreateSessionHeaders(message.Response);
315switch (message.Response.Status)
321using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
323return ResponseWithHeaders.FromValue(value, headers, message.Response);
326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
349var headers = new RemoteRenderingCreateSessionHeaders(message.Response);
350switch (message.Response.Status)
356using var document = JsonDocument.Parse(message.Response.ContentStream);
358return ResponseWithHeaders.FromValue(value, headers, message.Response);
361throw _clientDiagnostics.CreateRequestFailedException(message.Response);
396switch (message.Response.Status)
401using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
403return Response.FromValue(value, message.Response);
406throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
424switch (message.Response.Status)
429using var document = JsonDocument.Parse(message.Response.ContentStream);
431return Response.FromValue(value, message.Response);
434throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
483using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
485return Response.FromValue(value, message.Response);
488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
511switch (message.Response.Status)
516using var document = JsonDocument.Parse(message.Response.ContentStream);
518return Response.FromValue(value, message.Response);
521throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557var headers = new RemoteRenderingStopSessionHeaders(message.Response);
558switch (message.Response.Status)
561return ResponseWithHeaders.FromValue(headers, message.Response);
563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
581var headers = new RemoteRenderingStopSessionHeaders(message.Response);
582switch (message.Response.Status)
585return ResponseWithHeaders.FromValue(headers, message.Response);
587throw _clientDiagnostics.CreateRequestFailedException(message.Response);
614switch (message.Response.Status)
619using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
621return Response.FromValue(value, message.Response);
624throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
635switch (message.Response.Status)
640using var document = JsonDocument.Parse(message.Response.ContentStream);
642return Response.FromValue(value, message.Response);
645throw _clientDiagnostics.CreateRequestFailedException(message.Response);
676var headers = new RemoteRenderingListConversionsHeaders(message.Response);
677switch (message.Response.Status)
682using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
684return ResponseWithHeaders.FromValue(value, headers, message.Response);
687throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
705var headers = new RemoteRenderingListConversionsHeaders(message.Response);
706switch (message.Response.Status)
711using var document = JsonDocument.Parse(message.Response.ContentStream);
713return ResponseWithHeaders.FromValue(value, headers, message.Response);
716throw _clientDiagnostics.CreateRequestFailedException(message.Response);
747switch (message.Response.Status)
752using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
754return Response.FromValue(value, message.Response);
757throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
775switch (message.Response.Status)
780using var document = JsonDocument.Parse(message.Response.ContentStream);
782return Response.FromValue(value, message.Response);
785throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Monitor.OpenTelemetry.Exporter (14)
Azure.Monitor.Query (56)
Generated\QueryRestClient.cs (24)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
110switch (message.Response.Status)
115using var document = JsonDocument.Parse(message.Response.ContentStream);
117return Response.FromValue(value, message.Response);
120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
166switch (message.Response.Status)
171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
173return Response.FromValue(value, message.Response);
176throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
199switch (message.Response.Status)
204using var document = JsonDocument.Parse(message.Response.ContentStream);
206return Response.FromValue(value, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
243switch (message.Response.Status)
248using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
250return Response.FromValue(value, message.Response);
253throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
270switch (message.Response.Status)
275using var document = JsonDocument.Parse(message.Response.ContentStream);
277return Response.FromValue(value, message.Response);
280throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Quantum.Jobs (80)
Generated\JobsRestClient.cs (38)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
105switch (message.Response.Status)
110using var document = JsonDocument.Parse(message.Response.ContentStream);
112return Response.FromValue(value, message.Response);
115throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return Response.FromValue(value, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
179switch (message.Response.Status)
184using var document = JsonDocument.Parse(message.Response.ContentStream);
186return Response.FromValue(value, message.Response);
189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
235switch (message.Response.Status)
241using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
243return Response.FromValue(value, message.Response);
246throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
268switch (message.Response.Status)
274using var document = JsonDocument.Parse(message.Response.ContentStream);
276return Response.FromValue(value, message.Response);
279throw _clientDiagnostics.CreateRequestFailedException(message.Response);
316switch (message.Response.Status)
319return message.Response;
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
338switch (message.Response.Status)
341return message.Response;
343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
373switch (message.Response.Status)
378using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
380return Response.FromValue(value, message.Response);
383throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
400switch (message.Response.Status)
405using var document = JsonDocument.Parse(message.Response.ContentStream);
407return Response.FromValue(value, message.Response);
410throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.AppConfiguration (176)
Generated\ConfigurationStoresRestOperations.cs (90)
80switch (message.Response.Status)
85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
87return Response.FromValue(value, message.Response);
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
151switch (message.Response.Status)
156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
158return Response.FromValue(value, message.Response);
161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
179switch (message.Response.Status)
184using var document = JsonDocument.Parse(message.Response.ContentStream);
186return Response.FromValue(value, message.Response);
189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
230switch (message.Response.Status)
235using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
237return Response.FromValue(value, message.Response);
240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
262switch (message.Response.Status)
267using var document = JsonDocument.Parse(message.Response.ContentStream);
269return Response.FromValue(value, message.Response);
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
322switch (message.Response.Status)
326return message.Response;
328throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
355switch (message.Response.Status)
359return message.Response;
361throw _clientDiagnostics.CreateRequestFailedException(message.Response);
402switch (message.Response.Status)
407return message.Response;
409throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
431switch (message.Response.Status)
436return message.Response;
438throw _clientDiagnostics.CreateRequestFailedException(message.Response);
488switch (message.Response.Status)
492return message.Response;
494throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
521switch (message.Response.Status)
525return message.Response;
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
574switch (message.Response.Status)
579using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
581return Response.FromValue(value, message.Response);
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
612using var document = JsonDocument.Parse(message.Response.ContentStream);
614return Response.FromValue(value, message.Response);
617throw _clientDiagnostics.CreateRequestFailedException(message.Response);
668switch (message.Response.Status)
673using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
675return Response.FromValue(value, message.Response);
678throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
705switch (message.Response.Status)
710using var document = JsonDocument.Parse(message.Response.ContentStream);
712return Response.FromValue(value, message.Response);
715throw _clientDiagnostics.CreateRequestFailedException(message.Response);
766switch (message.Response.Status)
771using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
773return Response.FromValue(value, message.Response);
776throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
803switch (message.Response.Status)
808using var document = JsonDocument.Parse(message.Response.ContentStream);
810return Response.FromValue(value, message.Response);
813throw _clientDiagnostics.CreateRequestFailedException(message.Response);
844switch (message.Response.Status)
849using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
851return Response.FromValue(value, message.Response);
854throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
872switch (message.Response.Status)
877using var document = JsonDocument.Parse(message.Response.ContentStream);
879return Response.FromValue(value, message.Response);
882throw _clientDiagnostics.CreateRequestFailedException(message.Response);
918switch (message.Response.Status)
923using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
925return Response.FromValue(value, message.Response);
928throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
951switch (message.Response.Status)
956using var document = JsonDocument.Parse(message.Response.ContentStream);
958return Response.FromValue(value, message.Response);
961throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1002switch (message.Response.Status)
1007using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1009return Response.FromValue(value, message.Response);
1012throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1040switch (message.Response.Status)
1045using var document = JsonDocument.Parse(message.Response.ContentStream);
1047return Response.FromValue(value, message.Response);
1050throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateEndpointConnectionsRestOperations.cs (36)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
188return Response.FromValue(value, message.Response);
191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
218switch (message.Response.Status)
223using var document = JsonDocument.Parse(message.Response.ContentStream);
225return Response.FromValue(value, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
285switch (message.Response.Status)
289return message.Response;
291throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
327return message.Response;
329throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382return message.Response;
384throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
411switch (message.Response.Status)
416return message.Response;
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
458switch (message.Response.Status)
463using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
465return Response.FromValue(value, message.Response);
468throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
495switch (message.Response.Status)
500using var document = JsonDocument.Parse(message.Response.ContentStream);
502return Response.FromValue(value, message.Response);
505throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateLinkResourcesRestOperations.cs (24)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
188return Response.FromValue(value, message.Response);
191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
218switch (message.Response.Status)
223using var document = JsonDocument.Parse(message.Response.ContentStream);
225return Response.FromValue(value, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
268switch (message.Response.Status)
273using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
275return Response.FromValue(value, message.Response);
278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
310using var document = JsonDocument.Parse(message.Response.ContentStream);
312return Response.FromValue(value, message.Response);
315throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return Response.FromValue(value, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173switch (message.Response.Status)
178using var document = JsonDocument.Parse(message.Response.ContentStream);
180return Response.FromValue(value, message.Response);
183throw _clientDiagnostics.CreateRequestFailedException(message.Response);
214switch (message.Response.Status)
219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
221return Response.FromValue(value, message.Response);
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
242switch (message.Response.Status)
247using var document = JsonDocument.Parse(message.Response.ContentStream);
249return Response.FromValue(value, message.Response);
252throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Communication (122)
Generated\CommunicationServiceRestOperations.cs (96)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
171return Response.FromValue(value, message.Response);
174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
233switch (message.Response.Status)
238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
240return Response.FromValue(value, message.Response);
243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
253switch (message.Response.Status)
258using var document = JsonDocument.Parse(message.Response.ContentStream);
260return Response.FromValue(value, message.Response);
263throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
303using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
305return Response.FromValue(value, message.Response);
308throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
325switch (message.Response.Status)
330using var document = JsonDocument.Parse(message.Response.ContentStream);
332return Response.FromValue(value, message.Response);
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
417switch (message.Response.Status)
422using var document = JsonDocument.Parse(message.Response.ContentStream);
424return Response.FromValue(value, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
500switch (message.Response.Status)
505using var document = JsonDocument.Parse(message.Response.ContentStream);
507return Response.FromValue(value, message.Response);
510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
559var headers = new CommunicationServiceCreateOrUpdateHeaders(message.Response);
560switch (message.Response.Status)
564return ResponseWithHeaders.FromValue(headers, message.Response);
566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589var headers = new CommunicationServiceCreateOrUpdateHeaders(message.Response);
590switch (message.Response.Status)
594return ResponseWithHeaders.FromValue(headers, message.Response);
596throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637var headers = new CommunicationServiceDeleteHeaders(message.Response);
638switch (message.Response.Status)
643return ResponseWithHeaders.FromValue(headers, message.Response);
645throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
667var headers = new CommunicationServiceDeleteHeaders(message.Response);
668switch (message.Response.Status)
673return ResponseWithHeaders.FromValue(headers, message.Response);
675throw _clientDiagnostics.CreateRequestFailedException(message.Response);
717switch (message.Response.Status)
722using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
724return Response.FromValue(value, message.Response);
727throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
749switch (message.Response.Status)
754using var document = JsonDocument.Parse(message.Response.ContentStream);
756return Response.FromValue(value, message.Response);
759throw _clientDiagnostics.CreateRequestFailedException(message.Response);
810switch (message.Response.Status)
815using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
817return Response.FromValue(value, message.Response);
820throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
847switch (message.Response.Status)
852using var document = JsonDocument.Parse(message.Response.ContentStream);
854return Response.FromValue(value, message.Response);
857throw _clientDiagnostics.CreateRequestFailedException(message.Response);
887switch (message.Response.Status)
892using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
894return Response.FromValue(value, message.Response);
897throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
914switch (message.Response.Status)
919using var document = JsonDocument.Parse(message.Response.ContentStream);
921return Response.FromValue(value, message.Response);
924throw _clientDiagnostics.CreateRequestFailedException(message.Response);
959switch (message.Response.Status)
964using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
966return Response.FromValue(value, message.Response);
969throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
991switch (message.Response.Status)
996using var document = JsonDocument.Parse(message.Response.ContentStream);
998return Response.FromValue(value, message.Response);
1001throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Compute (1576)
Generated\AvailabilitySetsRestOperations.cs (70)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
136return Response.FromValue(value, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
189switch (message.Response.Status)
194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
196return Response.FromValue(value, message.Response);
199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
226switch (message.Response.Status)
231using var document = JsonDocument.Parse(message.Response.ContentStream);
233return Response.FromValue(value, message.Response);
236throw _clientDiagnostics.CreateRequestFailedException(message.Response);
276switch (message.Response.Status)
280return message.Response;
282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
304switch (message.Response.Status)
308return message.Response;
310throw _clientDiagnostics.CreateRequestFailedException(message.Response);
351switch (message.Response.Status)
356using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
358return Response.FromValue(value, message.Response);
361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
388using var document = JsonDocument.Parse(message.Response.ContentStream);
390return Response.FromValue(value, message.Response);
393throw _clientDiagnostics.CreateRequestFailedException(message.Response);
424switch (message.Response.Status)
429using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
431return Response.FromValue(value, message.Response);
434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
445switch (message.Response.Status)
450using var document = JsonDocument.Parse(message.Response.ContentStream);
452return Response.FromValue(value, message.Response);
455throw _clientDiagnostics.CreateRequestFailedException(message.Response);
490switch (message.Response.Status)
495using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
497return Response.FromValue(value, message.Response);
500throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
569switch (message.Response.Status)
574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
576return Response.FromValue(value, message.Response);
579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
601switch (message.Response.Status)
606using var document = JsonDocument.Parse(message.Response.ContentStream);
608return Response.FromValue(value, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
642switch (message.Response.Status)
647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
649return Response.FromValue(value, message.Response);
652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
670switch (message.Response.Status)
675using var document = JsonDocument.Parse(message.Response.ContentStream);
677return Response.FromValue(value, message.Response);
680throw _clientDiagnostics.CreateRequestFailedException(message.Response);
715switch (message.Response.Status)
720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
722return Response.FromValue(value, message.Response);
725throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
747switch (message.Response.Status)
752using var document = JsonDocument.Parse(message.Response.ContentStream);
754return Response.FromValue(value, message.Response);
757throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerServicesRestOperations.cs (52)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
148switch (message.Response.Status)
153return message.Response;
155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
182switch (message.Response.Status)
187return message.Response;
189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
230switch (message.Response.Status)
235using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
237return Response.FromValue(value, message.Response);
240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
262switch (message.Response.Status)
267using var document = JsonDocument.Parse(message.Response.ContentStream);
269return Response.FromValue(value, message.Response);
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
312switch (message.Response.Status)
316return message.Response;
318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
340switch (message.Response.Status)
344return message.Response;
346throw _clientDiagnostics.CreateRequestFailedException(message.Response);
381switch (message.Response.Status)
386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
388return Response.FromValue(value, message.Response);
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
408switch (message.Response.Status)
413using var document = JsonDocument.Parse(message.Response.ContentStream);
415return Response.FromValue(value, message.Response);
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
448switch (message.Response.Status)
453using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
455return Response.FromValue(value, message.Response);
458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
475switch (message.Response.Status)
480using var document = JsonDocument.Parse(message.Response.ContentStream);
482return Response.FromValue(value, message.Response);
485throw _clientDiagnostics.CreateRequestFailedException(message.Response);
520switch (message.Response.Status)
525using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
527return Response.FromValue(value, message.Response);
530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
552switch (message.Response.Status)
557using var document = JsonDocument.Parse(message.Response.ContentStream);
559return Response.FromValue(value, message.Response);
562throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DedicatedHostGroupsRestOperations.cs (62)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
310return message.Response;
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
353switch (message.Response.Status)
358using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
360return Response.FromValue(value, message.Response);
363throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
385switch (message.Response.Status)
390using var document = JsonDocument.Parse(message.Response.ContentStream);
392return Response.FromValue(value, message.Response);
395throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
457switch (message.Response.Status)
462using var document = JsonDocument.Parse(message.Response.ContentStream);
464return Response.FromValue(value, message.Response);
467throw _clientDiagnostics.CreateRequestFailedException(message.Response);
493switch (message.Response.Status)
498using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
500return Response.FromValue(value, message.Response);
503throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
513switch (message.Response.Status)
518using var document = JsonDocument.Parse(message.Response.ContentStream);
520return Response.FromValue(value, message.Response);
523throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
565return Response.FromValue(value, message.Response);
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
590switch (message.Response.Status)
595using var document = JsonDocument.Parse(message.Response.ContentStream);
597return Response.FromValue(value, message.Response);
600throw _clientDiagnostics.CreateRequestFailedException(message.Response);
630switch (message.Response.Status)
635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
637return Response.FromValue(value, message.Response);
640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
657switch (message.Response.Status)
662using var document = JsonDocument.Parse(message.Response.ContentStream);
664return Response.FromValue(value, message.Response);
667throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DedicatedHostsRestOperations.cs (42)
99switch (message.Response.Status)
103return message.Response;
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
137switch (message.Response.Status)
141return message.Response;
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
203return message.Response;
205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
237switch (message.Response.Status)
240return message.Response;
242throw _clientDiagnostics.CreateRequestFailedException(message.Response);
289switch (message.Response.Status)
294return message.Response;
296throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
328return message.Response;
330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
379switch (message.Response.Status)
384using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
386return Response.FromValue(value, message.Response);
389throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
416switch (message.Response.Status)
421using var document = JsonDocument.Parse(message.Response.ContentStream);
423return Response.FromValue(value, message.Response);
426throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
500switch (message.Response.Status)
505using var document = JsonDocument.Parse(message.Response.ContentStream);
507return Response.FromValue(value, message.Response);
510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
550switch (message.Response.Status)
555using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
557return Response.FromValue(value, message.Response);
560throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
587switch (message.Response.Status)
592using var document = JsonDocument.Parse(message.Response.ContentStream);
594return Response.FromValue(value, message.Response);
597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DiskEncryptionSetsRestOperations.cs (58)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
298using var document = JsonDocument.Parse(message.Response.ContentStream);
300return Response.FromValue(value, message.Response);
303throw _clientDiagnostics.CreateRequestFailedException(message.Response);
344switch (message.Response.Status)
349return message.Response;
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
373switch (message.Response.Status)
378return message.Response;
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
420using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
422return Response.FromValue(value, message.Response);
425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
483using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
485return Response.FromValue(value, message.Response);
488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
543switch (message.Response.Status)
548using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
550return Response.FromValue(value, message.Response);
553throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
575switch (message.Response.Status)
580using var document = JsonDocument.Parse(message.Response.ContentStream);
582return Response.FromValue(value, message.Response);
585throw _clientDiagnostics.CreateRequestFailedException(message.Response);
615switch (message.Response.Status)
620using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
622return Response.FromValue(value, message.Response);
625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
642switch (message.Response.Status)
647using var document = JsonDocument.Parse(message.Response.ContentStream);
649return Response.FromValue(value, message.Response);
652throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DisksRestOperations.cs (70)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
298using var document = JsonDocument.Parse(message.Response.ContentStream);
300return Response.FromValue(value, message.Response);
303throw _clientDiagnostics.CreateRequestFailedException(message.Response);
343switch (message.Response.Status)
348return message.Response;
350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
372switch (message.Response.Status)
377return message.Response;
379throw _clientDiagnostics.CreateRequestFailedException(message.Response);
414switch (message.Response.Status)
419using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
421return Response.FromValue(value, message.Response);
424throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
441switch (message.Response.Status)
446using var document = JsonDocument.Parse(message.Response.ContentStream);
448return Response.FromValue(value, message.Response);
451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
477switch (message.Response.Status)
482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
484return Response.FromValue(value, message.Response);
487throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
497switch (message.Response.Status)
502using var document = JsonDocument.Parse(message.Response.ContentStream);
504return Response.FromValue(value, message.Response);
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
562return message.Response;
564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
595return message.Response;
597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
638switch (message.Response.Status)
642return message.Response;
644throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
666switch (message.Response.Status)
670return message.Response;
672throw _clientDiagnostics.CreateRequestFailedException(message.Response);
707switch (message.Response.Status)
712using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
714return Response.FromValue(value, message.Response);
717throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
739switch (message.Response.Status)
744using var document = JsonDocument.Parse(message.Response.ContentStream);
746return Response.FromValue(value, message.Response);
749throw _clientDiagnostics.CreateRequestFailedException(message.Response);
779switch (message.Response.Status)
784using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
786return Response.FromValue(value, message.Response);
789throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
806switch (message.Response.Status)
811using var document = JsonDocument.Parse(message.Response.ContentStream);
813return Response.FromValue(value, message.Response);
816throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GalleriesRestOperations.cs (58)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
183switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
298using var document = JsonDocument.Parse(message.Response.ContentStream);
300return Response.FromValue(value, message.Response);
303throw _clientDiagnostics.CreateRequestFailedException(message.Response);
344switch (message.Response.Status)
349return message.Response;
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
373switch (message.Response.Status)
378return message.Response;
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
420using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
422return Response.FromValue(value, message.Response);
425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
483using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
485return Response.FromValue(value, message.Response);
488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
543switch (message.Response.Status)
548using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
550return Response.FromValue(value, message.Response);
553throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
575switch (message.Response.Status)
580using var document = JsonDocument.Parse(message.Response.ContentStream);
582return Response.FromValue(value, message.Response);
585throw _clientDiagnostics.CreateRequestFailedException(message.Response);
615switch (message.Response.Status)
620using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
622return Response.FromValue(value, message.Response);
625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
642switch (message.Response.Status)
647using var document = JsonDocument.Parse(message.Response.ContentStream);
649return Response.FromValue(value, message.Response);
652throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GalleryApplicationsRestOperations.cs (42)
99switch (message.Response.Status)
104return message.Response;
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
138switch (message.Response.Status)
143return message.Response;
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
202switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
292switch (message.Response.Status)
297using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
299return Response.FromValue(value, message.Response);
302throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
334using var document = JsonDocument.Parse(message.Response.ContentStream);
336return Response.FromValue(value, message.Response);
339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
387switch (message.Response.Status)
392return message.Response;
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
421switch (message.Response.Status)
426return message.Response;
428throw _clientDiagnostics.CreateRequestFailedException(message.Response);
470switch (message.Response.Status)
475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
477return Response.FromValue(value, message.Response);
480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
502switch (message.Response.Status)
507using var document = JsonDocument.Parse(message.Response.ContentStream);
509return Response.FromValue(value, message.Response);
512throw _clientDiagnostics.CreateRequestFailedException(message.Response);
552switch (message.Response.Status)
557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
559return Response.FromValue(value, message.Response);
562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589switch (message.Response.Status)
594using var document = JsonDocument.Parse(message.Response.ContentStream);
596return Response.FromValue(value, message.Response);
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GalleryApplicationVersionsRestOperations.cs (42)
106switch (message.Response.Status)
111return message.Response;
113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
150switch (message.Response.Status)
155return message.Response;
157throw _clientDiagnostics.CreateRequestFailedException(message.Response);
221switch (message.Response.Status)
224return message.Response;
226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
263switch (message.Response.Status)
266return message.Response;
268throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
333using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
335return Response.FromValue(value, message.Response);
338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
371switch (message.Response.Status)
376using var document = JsonDocument.Parse(message.Response.ContentStream);
378return Response.FromValue(value, message.Response);
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
436switch (message.Response.Status)
441return message.Response;
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
475switch (message.Response.Status)
480return message.Response;
482throw _clientDiagnostics.CreateRequestFailedException(message.Response);
531switch (message.Response.Status)
536using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
538return Response.FromValue(value, message.Response);
541throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
568switch (message.Response.Status)
573using var document = JsonDocument.Parse(message.Response.ContentStream);
575return Response.FromValue(value, message.Response);
578throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623switch (message.Response.Status)
628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
630return Response.FromValue(value, message.Response);
633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
665switch (message.Response.Status)
670using var document = JsonDocument.Parse(message.Response.ContentStream);
672return Response.FromValue(value, message.Response);
675throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GalleryImagesRestOperations.cs (42)
99switch (message.Response.Status)
104return message.Response;
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
138switch (message.Response.Status)
143return message.Response;
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
202switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
292switch (message.Response.Status)
297using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
299return Response.FromValue(value, message.Response);
302throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
334using var document = JsonDocument.Parse(message.Response.ContentStream);
336return Response.FromValue(value, message.Response);
339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
387switch (message.Response.Status)
392return message.Response;
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
421switch (message.Response.Status)
426return message.Response;
428throw _clientDiagnostics.CreateRequestFailedException(message.Response);
470switch (message.Response.Status)
475using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
477return Response.FromValue(value, message.Response);
480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
502switch (message.Response.Status)
507using var document = JsonDocument.Parse(message.Response.ContentStream);
509return Response.FromValue(value, message.Response);
512throw _clientDiagnostics.CreateRequestFailedException(message.Response);
552switch (message.Response.Status)
557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
559return Response.FromValue(value, message.Response);
562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589switch (message.Response.Status)
594using var document = JsonDocument.Parse(message.Response.ContentStream);
596return Response.FromValue(value, message.Response);
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GalleryImageVersionsRestOperations.cs (42)
106switch (message.Response.Status)
111return message.Response;
113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
150switch (message.Response.Status)
155return message.Response;
157throw _clientDiagnostics.CreateRequestFailedException(message.Response);
221switch (message.Response.Status)
224return message.Response;
226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
263switch (message.Response.Status)
266return message.Response;
268throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
333using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
335return Response.FromValue(value, message.Response);
338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
371switch (message.Response.Status)
376using var document = JsonDocument.Parse(message.Response.ContentStream);
378return Response.FromValue(value, message.Response);
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
436switch (message.Response.Status)
441return message.Response;
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
475switch (message.Response.Status)
480return message.Response;
482throw _clientDiagnostics.CreateRequestFailedException(message.Response);
531switch (message.Response.Status)
536using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
538return Response.FromValue(value, message.Response);
541throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
568switch (message.Response.Status)
573using var document = JsonDocument.Parse(message.Response.ContentStream);
575return Response.FromValue(value, message.Response);
578throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623switch (message.Response.Status)
628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
630return Response.FromValue(value, message.Response);
633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
665switch (message.Response.Status)
670using var document = JsonDocument.Parse(message.Response.ContentStream);
672return Response.FromValue(value, message.Response);
675throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ImagesRestOperations.cs (58)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
265return message.Response;
267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
289switch (message.Response.Status)
294return message.Response;
296throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
349return Response.FromValue(value, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
380using var document = JsonDocument.Parse(message.Response.ContentStream);
382return Response.FromValue(value, message.Response);
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
447switch (message.Response.Status)
452using var document = JsonDocument.Parse(message.Response.ContentStream);
454return Response.FromValue(value, message.Response);
457throw _clientDiagnostics.CreateRequestFailedException(message.Response);
483switch (message.Response.Status)
488using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
490return Response.FromValue(value, message.Response);
493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503switch (message.Response.Status)
508using var document = JsonDocument.Parse(message.Response.ContentStream);
510return Response.FromValue(value, message.Response);
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
548switch (message.Response.Status)
553using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
555return Response.FromValue(value, message.Response);
558throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580switch (message.Response.Status)
585using var document = JsonDocument.Parse(message.Response.ContentStream);
587return Response.FromValue(value, message.Response);
590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
620switch (message.Response.Status)
625using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
627return Response.FromValue(value, message.Response);
630throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
647switch (message.Response.Status)
652using var document = JsonDocument.Parse(message.Response.ContentStream);
654return Response.FromValue(value, message.Response);
657throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ProximityPlacementGroupsRestOperations.cs (62)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
281return message.Response;
283throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
308return message.Response;
310throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
389switch (message.Response.Status)
394using var document = JsonDocument.Parse(message.Response.ContentStream);
396return Response.FromValue(value, message.Response);
399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return Response.FromValue(value, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
445switch (message.Response.Status)
450using var document = JsonDocument.Parse(message.Response.ContentStream);
452return Response.FromValue(value, message.Response);
455throw _clientDiagnostics.CreateRequestFailedException(message.Response);
490switch (message.Response.Status)
495using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
497return Response.FromValue(value, message.Response);
500throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
584switch (message.Response.Status)
589using var document = JsonDocument.Parse(message.Response.ContentStream);
591return Response.FromValue(value, message.Response);
594throw _clientDiagnostics.CreateRequestFailedException(message.Response);
629switch (message.Response.Status)
634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
636return Response.FromValue(value, message.Response);
639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
661switch (message.Response.Status)
666using var document = JsonDocument.Parse(message.Response.ContentStream);
668return Response.FromValue(value, message.Response);
671throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SnapshotsRestOperations.cs (70)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
298using var document = JsonDocument.Parse(message.Response.ContentStream);
300return Response.FromValue(value, message.Response);
303throw _clientDiagnostics.CreateRequestFailedException(message.Response);
343switch (message.Response.Status)
348return message.Response;
350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
372switch (message.Response.Status)
377return message.Response;
379throw _clientDiagnostics.CreateRequestFailedException(message.Response);
414switch (message.Response.Status)
419using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
421return Response.FromValue(value, message.Response);
424throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
441switch (message.Response.Status)
446using var document = JsonDocument.Parse(message.Response.ContentStream);
448return Response.FromValue(value, message.Response);
451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
477switch (message.Response.Status)
482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
484return Response.FromValue(value, message.Response);
487throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
497switch (message.Response.Status)
502using var document = JsonDocument.Parse(message.Response.ContentStream);
504return Response.FromValue(value, message.Response);
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
562return message.Response;
564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
595return message.Response;
597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
638switch (message.Response.Status)
642return message.Response;
644throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
666switch (message.Response.Status)
670return message.Response;
672throw _clientDiagnostics.CreateRequestFailedException(message.Response);
707switch (message.Response.Status)
712using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
714return Response.FromValue(value, message.Response);
717throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
739switch (message.Response.Status)
744using var document = JsonDocument.Parse(message.Response.ContentStream);
746return Response.FromValue(value, message.Response);
749throw _clientDiagnostics.CreateRequestFailedException(message.Response);
779switch (message.Response.Status)
784using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
786return Response.FromValue(value, message.Response);
789throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
806switch (message.Response.Status)
811using var document = JsonDocument.Parse(message.Response.ContentStream);
813return Response.FromValue(value, message.Response);
816throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SshPublicKeysRestOperations.cs (70)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
220switch (message.Response.Status)
226using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
228return Response.FromValue(value, message.Response);
231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
258switch (message.Response.Status)
264using var document = JsonDocument.Parse(message.Response.ContentStream);
266return Response.FromValue(value, message.Response);
269throw _clientDiagnostics.CreateRequestFailedException(message.Response);
319switch (message.Response.Status)
324using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
326return Response.FromValue(value, message.Response);
329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
356switch (message.Response.Status)
361using var document = JsonDocument.Parse(message.Response.ContentStream);
363return Response.FromValue(value, message.Response);
366throw _clientDiagnostics.CreateRequestFailedException(message.Response);
406switch (message.Response.Status)
410return message.Response;
412throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
434switch (message.Response.Status)
438return message.Response;
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
481switch (message.Response.Status)
486using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
488return Response.FromValue(value, message.Response);
491throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
513switch (message.Response.Status)
518using var document = JsonDocument.Parse(message.Response.ContentStream);
520return Response.FromValue(value, message.Response);
523throw _clientDiagnostics.CreateRequestFailedException(message.Response);
565switch (message.Response.Status)
570using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
572return Response.FromValue(value, message.Response);
575throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
597switch (message.Response.Status)
602using var document = JsonDocument.Parse(message.Response.ContentStream);
604return Response.FromValue(value, message.Response);
607throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637switch (message.Response.Status)
642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
644return Response.FromValue(value, message.Response);
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
664switch (message.Response.Status)
669using var document = JsonDocument.Parse(message.Response.ContentStream);
671return Response.FromValue(value, message.Response);
674throw _clientDiagnostics.CreateRequestFailedException(message.Response);
709switch (message.Response.Status)
714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
716return Response.FromValue(value, message.Response);
719throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
741switch (message.Response.Status)
746using var document = JsonDocument.Parse(message.Response.ContentStream);
748return Response.FromValue(value, message.Response);
751throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualMachineExtensionImagesRestOperations.cs (24)
98switch (message.Response.Status)
103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
105return Response.FromValue(value, message.Response);
108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
140switch (message.Response.Status)
145using var document = JsonDocument.Parse(message.Response.ContentStream);
147return Response.FromValue(value, message.Response);
150throw _clientDiagnostics.CreateRequestFailedException(message.Response);
192switch (message.Response.Status)
197using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
204return Response.FromValue(value, message.Response);
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
229switch (message.Response.Status)
234using var document = JsonDocument.Parse(message.Response.ContentStream);
241return Response.FromValue(value, message.Response);
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
308switch (message.Response.Status)
313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
320return Response.FromValue(value, message.Response);
323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
353switch (message.Response.Status)
358using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualMachineImagesRestOperations.cs (40)
105switch (message.Response.Status)
110using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
112return Response.FromValue(value, message.Response);
115throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
152switch (message.Response.Status)
157using var document = JsonDocument.Parse(message.Response.ContentStream);
159return Response.FromValue(value, message.Response);
162throw _clientDiagnostics.CreateRequestFailedException(message.Response);
233switch (message.Response.Status)
238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
245return Response.FromValue(value, message.Response);
248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
283switch (message.Response.Status)
288using var document = JsonDocument.Parse(message.Response.ContentStream);
295return Response.FromValue(value, message.Response);
298throw _clientDiagnostics.CreateRequestFailedException(message.Response);
340switch (message.Response.Status)
345using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
352return Response.FromValue(value, message.Response);
355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
377switch (message.Response.Status)
382using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
464using var document = JsonDocument.Parse(message.Response.ContentStream);
471return Response.FromValue(value, message.Response);
474throw _clientDiagnostics.CreateRequestFailedException(message.Response);
523switch (message.Response.Status)
528using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
535return Response.FromValue(value, message.Response);
538throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
565switch (message.Response.Status)
570using var document = JsonDocument.Parse(message.Response.ContentStream);
577return Response.FromValue(value, message.Response);
580throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualMachineRunCommandsRestOperations.cs (24)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155switch (message.Response.Status)
160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
162return Response.FromValue(value, message.Response);
165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
187switch (message.Response.Status)
192using var document = JsonDocument.Parse(message.Response.ContentStream);
194return Response.FromValue(value, message.Response);
197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232switch (message.Response.Status)
237using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
239return Response.FromValue(value, message.Response);
242throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
264switch (message.Response.Status)
269using var document = JsonDocument.Parse(message.Response.ContentStream);
271return Response.FromValue(value, message.Response);
274throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualMachineScaleSetExtensionsRestOperations.cs (42)
99switch (message.Response.Status)
103return message.Response;
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
137switch (message.Response.Status)
141return message.Response;
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
204return message.Response;
206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
296return message.Response;
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
325switch (message.Response.Status)
330return message.Response;
332throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385switch (message.Response.Status)
390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
392return Response.FromValue(value, message.Response);
395throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
423switch (message.Response.Status)
428using var document = JsonDocument.Parse(message.Response.ContentStream);
430return Response.FromValue(value, message.Response);
433throw _clientDiagnostics.CreateRequestFailedException(message.Response);
475switch (message.Response.Status)
480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
482return Response.FromValue(value, message.Response);
485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
507switch (message.Response.Status)
512using var document = JsonDocument.Parse(message.Response.ContentStream);
514return Response.FromValue(value, message.Response);
517throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
594switch (message.Response.Status)
599using var document = JsonDocument.Parse(message.Response.ContentStream);
601return Response.FromValue(value, message.Response);
604throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualMachineScaleSetsRestOperations.cs (178)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
184return message.Response;
186throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
213switch (message.Response.Status)
216return message.Response;
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
263return message.Response;
265throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
287switch (message.Response.Status)
292return message.Response;
294throw _clientDiagnostics.CreateRequestFailedException(message.Response);
335switch (message.Response.Status)
340using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
342return Response.FromValue(value, message.Response);
345throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
372using var document = JsonDocument.Parse(message.Response.ContentStream);
374return Response.FromValue(value, message.Response);
377throw _clientDiagnostics.CreateRequestFailedException(message.Response);
426switch (message.Response.Status)
430return message.Response;
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
455switch (message.Response.Status)
459return message.Response;
461throw _clientDiagnostics.CreateRequestFailedException(message.Response);
511switch (message.Response.Status)
515return message.Response;
517throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
544switch (message.Response.Status)
548return message.Response;
550throw _clientDiagnostics.CreateRequestFailedException(message.Response);
592switch (message.Response.Status)
597using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
599return Response.FromValue(value, message.Response);
602throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
624switch (message.Response.Status)
629using var document = JsonDocument.Parse(message.Response.ContentStream);
631return Response.FromValue(value, message.Response);
634throw _clientDiagnostics.CreateRequestFailedException(message.Response);
669switch (message.Response.Status)
674using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
676return Response.FromValue(value, message.Response);
679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
696switch (message.Response.Status)
701using var document = JsonDocument.Parse(message.Response.ContentStream);
703return Response.FromValue(value, message.Response);
706throw _clientDiagnostics.CreateRequestFailedException(message.Response);
732switch (message.Response.Status)
737using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
739return Response.FromValue(value, message.Response);
742throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
752switch (message.Response.Status)
757using var document = JsonDocument.Parse(message.Response.ContentStream);
759return Response.FromValue(value, message.Response);
762throw _clientDiagnostics.CreateRequestFailedException(message.Response);
804switch (message.Response.Status)
809using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
811return Response.FromValue(value, message.Response);
814throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
836switch (message.Response.Status)
841using var document = JsonDocument.Parse(message.Response.ContentStream);
843return Response.FromValue(value, message.Response);
846throw _clientDiagnostics.CreateRequestFailedException(message.Response);
888switch (message.Response.Status)
893using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
895return Response.FromValue(value, message.Response);
898throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
920switch (message.Response.Status)
925using var document = JsonDocument.Parse(message.Response.ContentStream);
927return Response.FromValue(value, message.Response);
930throw _clientDiagnostics.CreateRequestFailedException(message.Response);
984switch (message.Response.Status)
988return message.Response;
990throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1014switch (message.Response.Status)
1018return message.Response;
1020throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1069switch (message.Response.Status)
1073return message.Response;
1075throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1098switch (message.Response.Status)
1102return message.Response;
1104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1153switch (message.Response.Status)
1157return message.Response;
1159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1182switch (message.Response.Status)
1186return message.Response;
1188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1237switch (message.Response.Status)
1241return message.Response;
1243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1266switch (message.Response.Status)
1270return message.Response;
1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1321switch (message.Response.Status)
1325return message.Response;
1327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1350switch (message.Response.Status)
1354return message.Response;
1356throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1406switch (message.Response.Status)
1410return message.Response;
1412throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1439switch (message.Response.Status)
1443return message.Response;
1445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1494switch (message.Response.Status)
1498return message.Response;
1500throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1523switch (message.Response.Status)
1527return message.Response;
1529throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1578switch (message.Response.Status)
1582return message.Response;
1584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1607switch (message.Response.Status)
1611return message.Response;
1613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1657switch (message.Response.Status)
1662using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1664return Response.FromValue(value, message.Response);
1667throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1690switch (message.Response.Status)
1695using var document = JsonDocument.Parse(message.Response.ContentStream);
1697return Response.FromValue(value, message.Response);
1700throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1749switch (message.Response.Status)
1752return message.Response;
1754throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1781switch (message.Response.Status)
1784return message.Response;
1786throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1836switch (message.Response.Status)
1840return message.Response;
1842throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1869switch (message.Response.Status)
1873return message.Response;
1875throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1910switch (message.Response.Status)
1915using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1917return Response.FromValue(value, message.Response);
1920throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1942switch (message.Response.Status)
1947using var document = JsonDocument.Parse(message.Response.ContentStream);
1949return Response.FromValue(value, message.Response);
1952throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1982switch (message.Response.Status)
1987using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1989return Response.FromValue(value, message.Response);
1992throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2009switch (message.Response.Status)
2014using var document = JsonDocument.Parse(message.Response.ContentStream);
2016return Response.FromValue(value, message.Response);
2019throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2059switch (message.Response.Status)
2064using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2066return Response.FromValue(value, message.Response);
2069throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2096switch (message.Response.Status)
2101using var document = JsonDocument.Parse(message.Response.ContentStream);
2103return Response.FromValue(value, message.Response);
2106throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2146switch (message.Response.Status)
2151using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2153return Response.FromValue(value, message.Response);
2156throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2183switch (message.Response.Status)
2188using var document = JsonDocument.Parse(message.Response.ContentStream);
2190return Response.FromValue(value, message.Response);
2193throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualMachineScaleSetVMsRestOperations.cs (104)
98switch (message.Response.Status)
102return message.Response;
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
132switch (message.Response.Status)
136return message.Response;
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
186switch (message.Response.Status)
190return message.Response;
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
219switch (message.Response.Status)
223return message.Response;
225throw _clientDiagnostics.CreateRequestFailedException(message.Response);
273switch (message.Response.Status)
277return message.Response;
279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
310return message.Response;
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
407switch (message.Response.Status)
411return message.Response;
413throw _clientDiagnostics.CreateRequestFailedException(message.Response);
460switch (message.Response.Status)
465return message.Response;
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499return message.Response;
501throw _clientDiagnostics.CreateRequestFailedException(message.Response);
550switch (message.Response.Status)
555using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
557return Response.FromValue(value, message.Response);
560throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
587switch (message.Response.Status)
592using var document = JsonDocument.Parse(message.Response.ContentStream);
594return Response.FromValue(value, message.Response);
597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
646switch (message.Response.Status)
651using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
653return Response.FromValue(value, message.Response);
656throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
683switch (message.Response.Status)
688using var document = JsonDocument.Parse(message.Response.ContentStream);
690return Response.FromValue(value, message.Response);
693throw _clientDiagnostics.CreateRequestFailedException(message.Response);
750switch (message.Response.Status)
755using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
757return Response.FromValue(value, message.Response);
760throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
785switch (message.Response.Status)
790using var document = JsonDocument.Parse(message.Response.ContentStream);
792return Response.FromValue(value, message.Response);
795throw _clientDiagnostics.CreateRequestFailedException(message.Response);
848switch (message.Response.Status)
852return message.Response;
854throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
882switch (message.Response.Status)
886return message.Response;
888throw _clientDiagnostics.CreateRequestFailedException(message.Response);
936switch (message.Response.Status)
940return message.Response;
942throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
969switch (message.Response.Status)
973return message.Response;
975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1023switch (message.Response.Status)
1027return message.Response;
1029throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1056switch (message.Response.Status)
1060return message.Response;
1062throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1110switch (message.Response.Status)
1114return message.Response;
1116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1143switch (message.Response.Status)
1147return message.Response;
1149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1197switch (message.Response.Status)
1201return message.Response;
1203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1230switch (message.Response.Status)
1234return message.Response;
1236throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1284switch (message.Response.Status)
1287return message.Response;
1289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1316switch (message.Response.Status)
1319return message.Response;
1321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1379switch (message.Response.Status)
1383return message.Response;
1385throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1417switch (message.Response.Status)
1421return message.Response;
1423throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1466switch (message.Response.Status)
1471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1473return Response.FromValue(value, message.Response);
1476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1506switch (message.Response.Status)
1511using var document = JsonDocument.Parse(message.Response.ContentStream);
1513return Response.FromValue(value, message.Response);
1516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualMachinesRestOperations.cs (168)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
169return message.Response;
171throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
202return message.Response;
204throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254switch (message.Response.Status)
258return message.Response;
260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
287switch (message.Response.Status)
291return message.Response;
293throw _clientDiagnostics.CreateRequestFailedException(message.Response);
343switch (message.Response.Status)
347return message.Response;
349throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
376switch (message.Response.Status)
380return message.Response;
382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
427return message.Response;
429throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
451switch (message.Response.Status)
456return message.Response;
458throw _clientDiagnostics.CreateRequestFailedException(message.Response);
500switch (message.Response.Status)
505using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
507return Response.FromValue(value, message.Response);
510throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
532switch (message.Response.Status)
537using var document = JsonDocument.Parse(message.Response.ContentStream);
539return Response.FromValue(value, message.Response);
542throw _clientDiagnostics.CreateRequestFailedException(message.Response);
584switch (message.Response.Status)
589using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
591return Response.FromValue(value, message.Response);
594throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
616switch (message.Response.Status)
621using var document = JsonDocument.Parse(message.Response.ContentStream);
623return Response.FromValue(value, message.Response);
626throw _clientDiagnostics.CreateRequestFailedException(message.Response);
667switch (message.Response.Status)
671return message.Response;
673throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
695switch (message.Response.Status)
699return message.Response;
701throw _clientDiagnostics.CreateRequestFailedException(message.Response);
742switch (message.Response.Status)
746return message.Response;
748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
770switch (message.Response.Status)
774return message.Response;
776throw _clientDiagnostics.CreateRequestFailedException(message.Response);
817switch (message.Response.Status)
820return message.Response;
822throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
844switch (message.Response.Status)
847return message.Response;
849throw _clientDiagnostics.CreateRequestFailedException(message.Response);
884switch (message.Response.Status)
889using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
891return Response.FromValue(value, message.Response);
894throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
911switch (message.Response.Status)
916using var document = JsonDocument.Parse(message.Response.ContentStream);
918return Response.FromValue(value, message.Response);
921throw _clientDiagnostics.CreateRequestFailedException(message.Response);
952switch (message.Response.Status)
957using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
959return Response.FromValue(value, message.Response);
962throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
973switch (message.Response.Status)
978using var document = JsonDocument.Parse(message.Response.ContentStream);
980return Response.FromValue(value, message.Response);
983throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1025switch (message.Response.Status)
1030using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1032return Response.FromValue(value, message.Response);
1035throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1057switch (message.Response.Status)
1062using var document = JsonDocument.Parse(message.Response.ContentStream);
1064return Response.FromValue(value, message.Response);
1067throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1113switch (message.Response.Status)
1117return message.Response;
1119throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1142switch (message.Response.Status)
1146return message.Response;
1148throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1190switch (message.Response.Status)
1194return message.Response;
1196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1218switch (message.Response.Status)
1222return message.Response;
1224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1265switch (message.Response.Status)
1269return message.Response;
1271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1293switch (message.Response.Status)
1297return message.Response;
1299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1340switch (message.Response.Status)
1344return message.Response;
1346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1368switch (message.Response.Status)
1372return message.Response;
1374throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1415switch (message.Response.Status)
1419return message.Response;
1421throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1443switch (message.Response.Status)
1447return message.Response;
1449throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1498switch (message.Response.Status)
1502return message.Response;
1504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1527switch (message.Response.Status)
1531return message.Response;
1533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1574switch (message.Response.Status)
1578return message.Response;
1580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1602switch (message.Response.Status)
1606return message.Response;
1608throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1649switch (message.Response.Status)
1652return message.Response;
1654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1676switch (message.Response.Status)
1679return message.Response;
1681throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1732switch (message.Response.Status)
1736return message.Response;
1738throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1765switch (message.Response.Status)
1769return message.Response;
1771throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1806switch (message.Response.Status)
1811using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1813return Response.FromValue(value, message.Response);
1816throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1838switch (message.Response.Status)
1843using var document = JsonDocument.Parse(message.Response.ContentStream);
1845return Response.FromValue(value, message.Response);
1848throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1883switch (message.Response.Status)
1888using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1890return Response.FromValue(value, message.Response);
1893throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1915switch (message.Response.Status)
1920using var document = JsonDocument.Parse(message.Response.ContentStream);
1922return Response.FromValue(value, message.Response);
1925throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1956switch (message.Response.Status)
1961using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1963return Response.FromValue(value, message.Response);
1966throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1984switch (message.Response.Status)
1989using var document = JsonDocument.Parse(message.Response.ContentStream);
1991return Response.FromValue(value, message.Response);
1994throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.CosmosDB (938)
Generated\CassandraResourcesRestOperations.cs (108)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
831switch (message.Response.Status)
836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
838return Response.FromValue(value, message.Response);
841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
873using var document = JsonDocument.Parse(message.Response.ContentStream);
875return Response.FromValue(value, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
933switch (message.Response.Status)
938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
940return Response.FromValue(value, message.Response);
943throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1053return message.Response;
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1092switch (message.Response.Status)
1096return message.Response;
1098throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1152switch (message.Response.Status)
1156return message.Response;
1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1190switch (message.Response.Status)
1194return message.Response;
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1252switch (message.Response.Status)
1257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1259return Response.FromValue(value, message.Response);
1262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1294switch (message.Response.Status)
1299using var document = JsonDocument.Parse(message.Response.ContentStream);
1301return Response.FromValue(value, message.Response);
1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1369switch (message.Response.Status)
1373return message.Response;
1375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1412switch (message.Response.Status)
1416return message.Response;
1418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1474switch (message.Response.Status)
1478return message.Response;
1480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1512switch (message.Response.Status)
1516return message.Response;
1518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1574switch (message.Response.Status)
1578return message.Response;
1580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1612switch (message.Response.Status)
1616return message.Response;
1618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CollectionRestOperations.cs (24)
104switch (message.Response.Status)
109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
111return Response.FromValue(value, message.Response);
114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
265switch (message.Response.Status)
270using var document = JsonDocument.Parse(message.Response.ContentStream);
272return Response.FromValue(value, message.Response);
275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
331switch (message.Response.Status)
336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
338return Response.FromValue(value, message.Response);
341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
373switch (message.Response.Status)
378using var document = JsonDocument.Parse(message.Response.ContentStream);
380return Response.FromValue(value, message.Response);
383throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseAccountsRestOperations.cs (130)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
178return message.Response;
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
207switch (message.Response.Status)
210return message.Response;
212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
265return message.Response;
267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
294switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
339switch (message.Response.Status)
343return message.Response;
345throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
371return message.Response;
373throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
427return message.Response;
429throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
456switch (message.Response.Status)
460return message.Response;
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
488switch (message.Response.Status)
493using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
495return Response.FromValue(value, message.Response);
498throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
508switch (message.Response.Status)
513using var document = JsonDocument.Parse(message.Response.ContentStream);
515return Response.FromValue(value, message.Response);
518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
553switch (message.Response.Status)
558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
560return Response.FromValue(value, message.Response);
563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580switch (message.Response.Status)
585using var document = JsonDocument.Parse(message.Response.ContentStream);
587return Response.FromValue(value, message.Response);
590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
632switch (message.Response.Status)
637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
639return Response.FromValue(value, message.Response);
642throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
664switch (message.Response.Status)
669using var document = JsonDocument.Parse(message.Response.ContentStream);
671return Response.FromValue(value, message.Response);
674throw _clientDiagnostics.CreateRequestFailedException(message.Response);
716switch (message.Response.Status)
721using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
723return Response.FromValue(value, message.Response);
726throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
748switch (message.Response.Status)
753using var document = JsonDocument.Parse(message.Response.ContentStream);
755return Response.FromValue(value, message.Response);
758throw _clientDiagnostics.CreateRequestFailedException(message.Response);
809switch (message.Response.Status)
813return message.Response;
815throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
842switch (message.Response.Status)
846return message.Response;
848throw _clientDiagnostics.CreateRequestFailedException(message.Response);
899switch (message.Response.Status)
903return message.Response;
905throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
932switch (message.Response.Status)
936return message.Response;
938throw _clientDiagnostics.CreateRequestFailedException(message.Response);
980switch (message.Response.Status)
985using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
987return Response.FromValue(value, message.Response);
990throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1012switch (message.Response.Status)
1017using var document = JsonDocument.Parse(message.Response.ContentStream);
1019return Response.FromValue(value, message.Response);
1022throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1064switch (message.Response.Status)
1069using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1071return Response.FromValue(value, message.Response);
1074throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1096switch (message.Response.Status)
1101using var document = JsonDocument.Parse(message.Response.ContentStream);
1103return Response.FromValue(value, message.Response);
1106throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1156switch (message.Response.Status)
1160return message.Response;
1162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1189switch (message.Response.Status)
1193return message.Response;
1195throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1226switch (message.Response.Status)
1231return Response.FromValue(value, message.Response);
1236return Response.FromValue(value, message.Response);
1239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1256switch (message.Response.Status)
1261return Response.FromValue(value, message.Response);
1266return Response.FromValue(value, message.Response);
1269throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1317switch (message.Response.Status)
1322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1324return Response.FromValue(value, message.Response);
1327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1354switch (message.Response.Status)
1359using var document = JsonDocument.Parse(message.Response.ContentStream);
1361return Response.FromValue(value, message.Response);
1364throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1411switch (message.Response.Status)
1416using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1418return Response.FromValue(value, message.Response);
1421throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1444switch (message.Response.Status)
1449using var document = JsonDocument.Parse(message.Response.ContentStream);
1451return Response.FromValue(value, message.Response);
1454throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1496switch (message.Response.Status)
1501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1503return Response.FromValue(value, message.Response);
1506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1528switch (message.Response.Status)
1533using var document = JsonDocument.Parse(message.Response.ContentStream);
1535return Response.FromValue(value, message.Response);
1538throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseRestOperations.cs (24)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
246using var document = JsonDocument.Parse(message.Response.ContentStream);
248return Response.FromValue(value, message.Response);
251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
300switch (message.Response.Status)
305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
307return Response.FromValue(value, message.Response);
310throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
337switch (message.Response.Status)
342using var document = JsonDocument.Parse(message.Response.ContentStream);
344return Response.FromValue(value, message.Response);
347throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GremlinResourcesRestOperations.cs (108)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
831switch (message.Response.Status)
836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
838return Response.FromValue(value, message.Response);
841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
873using var document = JsonDocument.Parse(message.Response.ContentStream);
875return Response.FromValue(value, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
933switch (message.Response.Status)
938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
940return Response.FromValue(value, message.Response);
943throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1053return message.Response;
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1092switch (message.Response.Status)
1096return message.Response;
1098throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1152switch (message.Response.Status)
1156return message.Response;
1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1190switch (message.Response.Status)
1194return message.Response;
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1252switch (message.Response.Status)
1257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1259return Response.FromValue(value, message.Response);
1262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1294switch (message.Response.Status)
1299using var document = JsonDocument.Parse(message.Response.ContentStream);
1301return Response.FromValue(value, message.Response);
1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1369switch (message.Response.Status)
1373return message.Response;
1375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1412switch (message.Response.Status)
1416return message.Response;
1418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1474switch (message.Response.Status)
1478return message.Response;
1480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1512switch (message.Response.Status)
1516return message.Response;
1518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1574switch (message.Response.Status)
1578return message.Response;
1580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1612switch (message.Response.Status)
1616return message.Response;
1618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MongoDBResourcesRestOperations.cs (108)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
831switch (message.Response.Status)
836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
838return Response.FromValue(value, message.Response);
841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
873using var document = JsonDocument.Parse(message.Response.ContentStream);
875return Response.FromValue(value, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
933switch (message.Response.Status)
938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
940return Response.FromValue(value, message.Response);
943throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1053return message.Response;
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1092switch (message.Response.Status)
1096return message.Response;
1098throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1152switch (message.Response.Status)
1156return message.Response;
1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1190switch (message.Response.Status)
1194return message.Response;
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1252switch (message.Response.Status)
1257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1259return Response.FromValue(value, message.Response);
1262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1294switch (message.Response.Status)
1299using var document = JsonDocument.Parse(message.Response.ContentStream);
1301return Response.FromValue(value, message.Response);
1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1369switch (message.Response.Status)
1373return message.Response;
1375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1412switch (message.Response.Status)
1416return message.Response;
1418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1474switch (message.Response.Status)
1478return message.Response;
1480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1512switch (message.Response.Status)
1516return message.Response;
1518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1574switch (message.Response.Status)
1578return message.Response;
1580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1612switch (message.Response.Status)
1616return message.Response;
1618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebookWorkspacesRestOperations.cs (48)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
170switch (message.Response.Status)
175using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
177return Response.FromValue(value, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
269return message.Response;
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
302return message.Response;
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
348switch (message.Response.Status)
352return message.Response;
354throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
377switch (message.Response.Status)
381return message.Response;
383throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
461switch (message.Response.Status)
466using var document = JsonDocument.Parse(message.Response.ContentStream);
468return Response.FromValue(value, message.Response);
471throw _clientDiagnostics.CreateRequestFailedException(message.Response);
516switch (message.Response.Status)
520return message.Response;
522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
545switch (message.Response.Status)
549return message.Response;
551throw _clientDiagnostics.CreateRequestFailedException(message.Response);
596switch (message.Response.Status)
600return message.Response;
602throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
625switch (message.Response.Status)
629return message.Response;
631throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SqlResourcesRestOperations.cs (192)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
831switch (message.Response.Status)
836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
838return Response.FromValue(value, message.Response);
841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
873using var document = JsonDocument.Parse(message.Response.ContentStream);
875return Response.FromValue(value, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
933switch (message.Response.Status)
938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
940return Response.FromValue(value, message.Response);
943throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1053return message.Response;
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1092switch (message.Response.Status)
1096return message.Response;
1098throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1152switch (message.Response.Status)
1156return message.Response;
1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1190switch (message.Response.Status)
1194return message.Response;
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1252switch (message.Response.Status)
1257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1259return Response.FromValue(value, message.Response);
1262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1294switch (message.Response.Status)
1299using var document = JsonDocument.Parse(message.Response.ContentStream);
1301return Response.FromValue(value, message.Response);
1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1369switch (message.Response.Status)
1373return message.Response;
1375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1412switch (message.Response.Status)
1416return message.Response;
1418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1474switch (message.Response.Status)
1478return message.Response;
1480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1512switch (message.Response.Status)
1516return message.Response;
1518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1574switch (message.Response.Status)
1578return message.Response;
1580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1612switch (message.Response.Status)
1616return message.Response;
1618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1674switch (message.Response.Status)
1679using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1681return Response.FromValue(value, message.Response);
1684throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1716switch (message.Response.Status)
1721using var document = JsonDocument.Parse(message.Response.ContentStream);
1723return Response.FromValue(value, message.Response);
1726throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1788switch (message.Response.Status)
1793using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1795return Response.FromValue(value, message.Response);
1798throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1835switch (message.Response.Status)
1840using var document = JsonDocument.Parse(message.Response.ContentStream);
1842return Response.FromValue(value, message.Response);
1845throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1916switch (message.Response.Status)
1920return message.Response;
1922throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1964switch (message.Response.Status)
1968return message.Response;
1970throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2031switch (message.Response.Status)
2035return message.Response;
2037throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2074switch (message.Response.Status)
2078return message.Response;
2080throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2136switch (message.Response.Status)
2141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2143return Response.FromValue(value, message.Response);
2146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2178switch (message.Response.Status)
2183using var document = JsonDocument.Parse(message.Response.ContentStream);
2185return Response.FromValue(value, message.Response);
2188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2250switch (message.Response.Status)
2255using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2257return Response.FromValue(value, message.Response);
2260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2297switch (message.Response.Status)
2302using var document = JsonDocument.Parse(message.Response.ContentStream);
2304return Response.FromValue(value, message.Response);
2307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2378switch (message.Response.Status)
2382return message.Response;
2384throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2426switch (message.Response.Status)
2430return message.Response;
2432throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2493switch (message.Response.Status)
2497return message.Response;
2499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2536switch (message.Response.Status)
2540return message.Response;
2542throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2598switch (message.Response.Status)
2603using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2605return Response.FromValue(value, message.Response);
2608throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2640switch (message.Response.Status)
2645using var document = JsonDocument.Parse(message.Response.ContentStream);
2647return Response.FromValue(value, message.Response);
2650throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2712switch (message.Response.Status)
2717using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2719return Response.FromValue(value, message.Response);
2722throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2759switch (message.Response.Status)
2764using var document = JsonDocument.Parse(message.Response.ContentStream);
2766return Response.FromValue(value, message.Response);
2769throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2840switch (message.Response.Status)
2844return message.Response;
2846throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2888switch (message.Response.Status)
2892return message.Response;
2894throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2955switch (message.Response.Status)
2959return message.Response;
2961throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2998switch (message.Response.Status)
3002return message.Response;
3004throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TableResourcesRestOperations.cs (54)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Dns (150)
Generated\RecordSetsRestOperations.cs (78)
114switch (message.Response.Status)
119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
121return Response.FromValue(value, message.Response);
124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
158switch (message.Response.Status)
163using var document = JsonDocument.Parse(message.Response.ContentStream);
165return Response.FromValue(value, message.Response);
168throw _clientDiagnostics.CreateRequestFailedException(message.Response);
238switch (message.Response.Status)
244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
246return Response.FromValue(value, message.Response);
249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
284switch (message.Response.Status)
290using var document = JsonDocument.Parse(message.Response.ContentStream);
292return Response.FromValue(value, message.Response);
295throw _clientDiagnostics.CreateRequestFailedException(message.Response);
351switch (message.Response.Status)
355return message.Response;
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
481switch (message.Response.Status)
486using var document = JsonDocument.Parse(message.Response.ContentStream);
488return Response.FromValue(value, message.Response);
491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
545switch (message.Response.Status)
550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
552return Response.FromValue(value, message.Response);
555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580switch (message.Response.Status)
585using var document = JsonDocument.Parse(message.Response.ContentStream);
587return Response.FromValue(value, message.Response);
590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
642switch (message.Response.Status)
647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
649return Response.FromValue(value, message.Response);
652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
676switch (message.Response.Status)
681using var document = JsonDocument.Parse(message.Response.ContentStream);
683return Response.FromValue(value, message.Response);
686throw _clientDiagnostics.CreateRequestFailedException(message.Response);
738switch (message.Response.Status)
743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
745return Response.FromValue(value, message.Response);
748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
772switch (message.Response.Status)
777using var document = JsonDocument.Parse(message.Response.ContentStream);
779return Response.FromValue(value, message.Response);
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
825switch (message.Response.Status)
830using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
832return Response.FromValue(value, message.Response);
835throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
865switch (message.Response.Status)
870using var document = JsonDocument.Parse(message.Response.ContentStream);
872return Response.FromValue(value, message.Response);
875throw _clientDiagnostics.CreateRequestFailedException(message.Response);
917switch (message.Response.Status)
922using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
924return Response.FromValue(value, message.Response);
927throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
956switch (message.Response.Status)
961using var document = JsonDocument.Parse(message.Response.ContentStream);
963return Response.FromValue(value, message.Response);
966throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1008switch (message.Response.Status)
1013using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1015return Response.FromValue(value, message.Response);
1018throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1047switch (message.Response.Status)
1052using var document = JsonDocument.Parse(message.Response.ContentStream);
1054return Response.FromValue(value, message.Response);
1057throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ZonesRestOperations.cs (62)
109switch (message.Response.Status)
115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
117return Response.FromValue(value, message.Response);
120throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
149switch (message.Response.Status)
155using var document = JsonDocument.Parse(message.Response.ContentStream);
157return Response.FromValue(value, message.Response);
160throw _clientDiagnostics.CreateRequestFailedException(message.Response);
206switch (message.Response.Status)
211return message.Response;
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
236switch (message.Response.Status)
241return message.Response;
243throw _clientDiagnostics.CreateRequestFailedException(message.Response);
284switch (message.Response.Status)
289using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
291return Response.FromValue(value, message.Response);
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
321using var document = JsonDocument.Parse(message.Response.ContentStream);
323return Response.FromValue(value, message.Response);
326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
381switch (message.Response.Status)
386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
388return Response.FromValue(value, message.Response);
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
419switch (message.Response.Status)
424using var document = JsonDocument.Parse(message.Response.ContentStream);
426return Response.FromValue(value, message.Response);
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
476return Response.FromValue(value, message.Response);
479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
497switch (message.Response.Status)
502using var document = JsonDocument.Parse(message.Response.ContentStream);
504return Response.FromValue(value, message.Response);
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
538switch (message.Response.Status)
543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
545return Response.FromValue(value, message.Response);
548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
605switch (message.Response.Status)
610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
612return Response.FromValue(value, message.Response);
615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
638switch (message.Response.Status)
643using var document = JsonDocument.Parse(message.Response.ContentStream);
645return Response.FromValue(value, message.Response);
648throw _clientDiagnostics.CreateRequestFailedException(message.Response);
679switch (message.Response.Status)
684using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
686return Response.FromValue(value, message.Response);
689throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
707switch (message.Response.Status)
712using var document = JsonDocument.Parse(message.Response.ContentStream);
714return Response.FromValue(value, message.Response);
717throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.EventHubs (548)
Generated\ClustersRestOperations.cs (58)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
328return message.Response;
330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
380switch (message.Response.Status)
385return message.Response;
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
414switch (message.Response.Status)
419return message.Response;
421throw _clientDiagnostics.CreateRequestFailedException(message.Response);
462switch (message.Response.Status)
467return message.Response;
469throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
491switch (message.Response.Status)
496return message.Response;
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
540switch (message.Response.Status)
545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
547return Response.FromValue(value, message.Response);
550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
572switch (message.Response.Status)
577using var document = JsonDocument.Parse(message.Response.ContentStream);
579return Response.FromValue(value, message.Response);
582throw _clientDiagnostics.CreateRequestFailedException(message.Response);
617switch (message.Response.Status)
622using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
624return Response.FromValue(value, message.Response);
627throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
649switch (message.Response.Status)
654using var document = JsonDocument.Parse(message.Response.ContentStream);
656return Response.FromValue(value, message.Response);
659throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ConfigurationRestOperations.cs (18)
93switch (message.Response.Status)
99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
101return Response.FromValue(value, message.Response);
104return Response.FromValue<ClusterQuotaConfigurationProperties>(null, message.Response);
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
133switch (message.Response.Status)
139using var document = JsonDocument.Parse(message.Response.ContentStream);
141return Response.FromValue(value, message.Response);
144return Response.FromValue<ClusterQuotaConfigurationProperties>(null, message.Response);
146throw _clientDiagnostics.CreateRequestFailedException(message.Response);
188switch (message.Response.Status)
193using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
195return Response.FromValue(value, message.Response);
198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
220switch (message.Response.Status)
225using var document = JsonDocument.Parse(message.Response.ContentStream);
227return Response.FromValue(value, message.Response);
230throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ConsumerGroupsRestOperations.cs (38)
106switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
153switch (message.Response.Status)
158using var document = JsonDocument.Parse(message.Response.ContentStream);
160return Response.FromValue(value, message.Response);
163throw _clientDiagnostics.CreateRequestFailedException(message.Response);
218switch (message.Response.Status)
222return message.Response;
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
256switch (message.Response.Status)
260return message.Response;
262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
317switch (message.Response.Status)
322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
324return Response.FromValue(value, message.Response);
327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
467switch (message.Response.Status)
472using var document = JsonDocument.Parse(message.Response.ContentStream);
474return Response.FromValue(value, message.Response);
477throw _clientDiagnostics.CreateRequestFailedException(message.Response);
524switch (message.Response.Status)
529using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
531return Response.FromValue(value, message.Response);
534throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
568switch (message.Response.Status)
573using var document = JsonDocument.Parse(message.Response.ContentStream);
575return Response.FromValue(value, message.Response);
578throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DisasterRecoveryConfigsRestOperations.cs (92)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
193switch (message.Response.Status)
198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
200return Response.FromValue(value, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343switch (message.Response.Status)
348using var document = JsonDocument.Parse(message.Response.ContentStream);
350return Response.FromValue(value, message.Response);
353throw _clientDiagnostics.CreateRequestFailedException(message.Response);
404switch (message.Response.Status)
409using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
411return Response.FromValue(value, message.Response);
414throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
441switch (message.Response.Status)
446using var document = JsonDocument.Parse(message.Response.ContentStream);
448return Response.FromValue(value, message.Response);
451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
493switch (message.Response.Status)
498using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
500return Response.FromValue(value, message.Response);
503throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
592switch (message.Response.Status)
597using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
599return Response.FromValue(value, message.Response);
602return Response.FromValue<ArmDisasterRecovery>(null, message.Response);
604throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
636switch (message.Response.Status)
641using var document = JsonDocument.Parse(message.Response.ContentStream);
643return Response.FromValue(value, message.Response);
646return Response.FromValue<ArmDisasterRecovery>(null, message.Response);
648throw _clientDiagnostics.CreateRequestFailedException(message.Response);
696switch (message.Response.Status)
699return message.Response;
701throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
728switch (message.Response.Status)
731return message.Response;
733throw _clientDiagnostics.CreateRequestFailedException(message.Response);
781switch (message.Response.Status)
786using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
788return Response.FromValue(value, message.Response);
791throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
818switch (message.Response.Status)
823using var document = JsonDocument.Parse(message.Response.ContentStream);
825return Response.FromValue(value, message.Response);
828throw _clientDiagnostics.CreateRequestFailedException(message.Response);
877switch (message.Response.Status)
880return message.Response;
882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
909switch (message.Response.Status)
912return message.Response;
914throw _clientDiagnostics.CreateRequestFailedException(message.Response);
963switch (message.Response.Status)
966return message.Response;
968throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
995switch (message.Response.Status)
998return message.Response;
1000throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1045switch (message.Response.Status)
1050using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1052return Response.FromValue(value, message.Response);
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1087switch (message.Response.Status)
1092using var document = JsonDocument.Parse(message.Response.ContentStream);
1094return Response.FromValue(value, message.Response);
1097throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1137switch (message.Response.Status)
1142using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1144return Response.FromValue(value, message.Response);
1147throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1174switch (message.Response.Status)
1179using var document = JsonDocument.Parse(message.Response.ContentStream);
1181return Response.FromValue(value, message.Response);
1184throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventHubsRestOperations.cs (92)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
202switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
249switch (message.Response.Status)
254using var document = JsonDocument.Parse(message.Response.ContentStream);
256return Response.FromValue(value, message.Response);
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
314switch (message.Response.Status)
319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
321return Response.FromValue(value, message.Response);
324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
356switch (message.Response.Status)
361using var document = JsonDocument.Parse(message.Response.ContentStream);
363return Response.FromValue(value, message.Response);
366throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
425return message.Response;
427throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
463return message.Response;
465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
521switch (message.Response.Status)
526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
528return Response.FromValue(value, message.Response);
531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
563switch (message.Response.Status)
568using var document = JsonDocument.Parse(message.Response.ContentStream);
570return Response.FromValue(value, message.Response);
573throw _clientDiagnostics.CreateRequestFailedException(message.Response);
638switch (message.Response.Status)
643using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
645return Response.FromValue(value, message.Response);
648throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
685switch (message.Response.Status)
690using var document = JsonDocument.Parse(message.Response.ContentStream);
692return Response.FromValue(value, message.Response);
695throw _clientDiagnostics.CreateRequestFailedException(message.Response);
747switch (message.Response.Status)
752using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
754return Response.FromValue(value, message.Response);
757throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
781switch (message.Response.Status)
786using var document = JsonDocument.Parse(message.Response.ContentStream);
788return Response.FromValue(value, message.Response);
791throw _clientDiagnostics.CreateRequestFailedException(message.Response);
848switch (message.Response.Status)
853using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
855return Response.FromValue(value, message.Response);
858throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
890switch (message.Response.Status)
895using var document = JsonDocument.Parse(message.Response.ContentStream);
897return Response.FromValue(value, message.Response);
900throw _clientDiagnostics.CreateRequestFailedException(message.Response);
948switch (message.Response.Status)
952return message.Response;
954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
981switch (message.Response.Status)
985return message.Response;
987throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1035switch (message.Response.Status)
1040using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1042return Response.FromValue(value, message.Response);
1045throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1072switch (message.Response.Status)
1077using var document = JsonDocument.Parse(message.Response.ContentStream);
1079return Response.FromValue(value, message.Response);
1082throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1127switch (message.Response.Status)
1132using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1134return Response.FromValue(value, message.Response);
1137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1169switch (message.Response.Status)
1174using var document = JsonDocument.Parse(message.Response.ContentStream);
1176return Response.FromValue(value, message.Response);
1179throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1221switch (message.Response.Status)
1226using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1228return Response.FromValue(value, message.Response);
1231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1260switch (message.Response.Status)
1265using var document = JsonDocument.Parse(message.Response.ContentStream);
1267return Response.FromValue(value, message.Response);
1270throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NamespacesRestOperations.cs (216)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
183switch (message.Response.Status)
188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
190return Response.FromValue(value, message.Response);
193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
225switch (message.Response.Status)
230using var document = JsonDocument.Parse(message.Response.ContentStream);
232return Response.FromValue(value, message.Response);
235throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
377return Response.FromValue(value, message.Response);
380throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
407switch (message.Response.Status)
412using var document = JsonDocument.Parse(message.Response.ContentStream);
414return Response.FromValue(value, message.Response);
417throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
463switch (message.Response.Status)
468using var document = JsonDocument.Parse(message.Response.ContentStream);
470return Response.FromValue(value, message.Response);
473throw _clientDiagnostics.CreateRequestFailedException(message.Response);
508switch (message.Response.Status)
513using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
515return Response.FromValue(value, message.Response);
518throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
535switch (message.Response.Status)
540using var document = JsonDocument.Parse(message.Response.ContentStream);
542return Response.FromValue(value, message.Response);
545throw _clientDiagnostics.CreateRequestFailedException(message.Response);
595switch (message.Response.Status)
600return message.Response;
602throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
629switch (message.Response.Status)
634return message.Response;
636throw _clientDiagnostics.CreateRequestFailedException(message.Response);
677switch (message.Response.Status)
682return message.Response;
684throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
706switch (message.Response.Status)
711return message.Response;
713throw _clientDiagnostics.CreateRequestFailedException(message.Response);
754switch (message.Response.Status)
760using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
762return Response.FromValue(value, message.Response);
765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
787switch (message.Response.Status)
793using var document = JsonDocument.Parse(message.Response.ContentStream);
795return Response.FromValue(value, message.Response);
798throw _clientDiagnostics.CreateRequestFailedException(message.Response);
848switch (message.Response.Status)
854using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
856return Response.FromValue(value, message.Response);
859return Response.FromValue<EHNamespace>(null, message.Response);
861throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
888switch (message.Response.Status)
894using var document = JsonDocument.Parse(message.Response.ContentStream);
896return Response.FromValue(value, message.Response);
899return Response.FromValue<EHNamespace>(null, message.Response);
901throw _clientDiagnostics.CreateRequestFailedException(message.Response);
943switch (message.Response.Status)
948using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
950return Response.FromValue(value, message.Response);
953throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1042switch (message.Response.Status)
1047using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1049return Response.FromValue(value, message.Response);
1052throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1084switch (message.Response.Status)
1089using var document = JsonDocument.Parse(message.Response.ContentStream);
1091return Response.FromValue(value, message.Response);
1094throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1142switch (message.Response.Status)
1146return message.Response;
1148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1175switch (message.Response.Status)
1179return message.Response;
1181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1229switch (message.Response.Status)
1234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1236return Response.FromValue(value, message.Response);
1239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1266switch (message.Response.Status)
1271using var document = JsonDocument.Parse(message.Response.ContentStream);
1273return Response.FromValue(value, message.Response);
1276throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1327switch (message.Response.Status)
1332using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1334return Response.FromValue(value, message.Response);
1337throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1364switch (message.Response.Status)
1369using var document = JsonDocument.Parse(message.Response.ContentStream);
1371return Response.FromValue(value, message.Response);
1374throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1416switch (message.Response.Status)
1421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1423return Response.FromValue(value, message.Response);
1426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1448switch (message.Response.Status)
1453using var document = JsonDocument.Parse(message.Response.ContentStream);
1455return Response.FromValue(value, message.Response);
1458throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1500switch (message.Response.Status)
1505using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1507return Response.FromValue(value, message.Response);
1510throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1532switch (message.Response.Status)
1537using var document = JsonDocument.Parse(message.Response.ContentStream);
1539return Response.FromValue(value, message.Response);
1542throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1599switch (message.Response.Status)
1604using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1606return Response.FromValue(value, message.Response);
1609throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1641switch (message.Response.Status)
1646using var document = JsonDocument.Parse(message.Response.ContentStream);
1648return Response.FromValue(value, message.Response);
1651throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1699switch (message.Response.Status)
1703return message.Response;
1705throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1732switch (message.Response.Status)
1736return message.Response;
1738throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1786switch (message.Response.Status)
1791using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1793return Response.FromValue(value, message.Response);
1796throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1823switch (message.Response.Status)
1828using var document = JsonDocument.Parse(message.Response.ContentStream);
1830return Response.FromValue(value, message.Response);
1833throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1882switch (message.Response.Status)
1887using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1889return Response.FromValue(value, message.Response);
1892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1919switch (message.Response.Status)
1924using var document = JsonDocument.Parse(message.Response.ContentStream);
1926return Response.FromValue(value, message.Response);
1929throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1987switch (message.Response.Status)
1992using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1994return Response.FromValue(value, message.Response);
1997throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2029switch (message.Response.Status)
2034using var document = JsonDocument.Parse(message.Response.ContentStream);
2036return Response.FromValue(value, message.Response);
2039throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2076switch (message.Response.Status)
2081using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2083return Response.FromValue(value, message.Response);
2086throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2103switch (message.Response.Status)
2108using var document = JsonDocument.Parse(message.Response.ContentStream);
2110return Response.FromValue(value, message.Response);
2113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2153switch (message.Response.Status)
2158using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2160return Response.FromValue(value, message.Response);
2163throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2190switch (message.Response.Status)
2195using var document = JsonDocument.Parse(message.Response.ContentStream);
2197return Response.FromValue(value, message.Response);
2200throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2230switch (message.Response.Status)
2235using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2237return Response.FromValue(value, message.Response);
2240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2257switch (message.Response.Status)
2262using var document = JsonDocument.Parse(message.Response.ContentStream);
2264return Response.FromValue(value, message.Response);
2267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2302switch (message.Response.Status)
2307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2309return Response.FromValue(value, message.Response);
2312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2334switch (message.Response.Status)
2339using var document = JsonDocument.Parse(message.Response.ContentStream);
2341return Response.FromValue(value, message.Response);
2344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2384switch (message.Response.Status)
2389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2391return Response.FromValue(value, message.Response);
2394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2421switch (message.Response.Status)
2426using var document = JsonDocument.Parse(message.Response.ContentStream);
2428return Response.FromValue(value, message.Response);
2431throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2471switch (message.Response.Status)
2476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2478return Response.FromValue(value, message.Response);
2481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2508switch (message.Response.Status)
2513using var document = JsonDocument.Parse(message.Response.ContentStream);
2515return Response.FromValue(value, message.Response);
2518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Insights (520)
Generated\ActionGroupsRestOperations.cs (52)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
269return message.Response;
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
356return Response.FromValue(value, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
391using var document = JsonDocument.Parse(message.Response.ContentStream);
393return Response.FromValue(value, message.Response);
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
429return Response.FromValue(value, message.Response);
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
494return Response.FromValue(value, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
575switch (message.Response.Status)
579return message.Response;
581throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
612return message.Response;
614throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ActivityLogAlertsRestOperations.cs (46)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
269return message.Response;
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
356return Response.FromValue(value, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
391using var document = JsonDocument.Parse(message.Response.ContentStream);
393return Response.FromValue(value, message.Response);
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
429return Response.FromValue(value, message.Response);
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
494return Response.FromValue(value, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AlertRulesRestOperations.cs (46)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
213return message.Response;
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
256switch (message.Response.Status)
261using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
263return Response.FromValue(value, message.Response);
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
288switch (message.Response.Status)
293using var document = JsonDocument.Parse(message.Response.ContentStream);
295return Response.FromValue(value, message.Response);
298throw _clientDiagnostics.CreateRequestFailedException(message.Response);
348switch (message.Response.Status)
354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
356return Response.FromValue(value, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
464using var document = JsonDocument.Parse(message.Response.ContentStream);
466return Response.FromValue(value, message.Response);
469throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
502return Response.FromValue(value, message.Response);
505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
515switch (message.Response.Status)
520using var document = JsonDocument.Parse(message.Response.ContentStream);
522return Response.FromValue(value, message.Response);
525throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AutoscaleSettingsRestOperations.cs (62)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
202switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254switch (message.Response.Status)
258return message.Response;
260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
282switch (message.Response.Status)
286return message.Response;
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
336return Response.FromValue(value, message.Response);
339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
361switch (message.Response.Status)
366using var document = JsonDocument.Parse(message.Response.ContentStream);
368return Response.FromValue(value, message.Response);
371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
428return Response.FromValue(value, message.Response);
431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
458switch (message.Response.Status)
463using var document = JsonDocument.Parse(message.Response.ContentStream);
465return Response.FromValue(value, message.Response);
468throw _clientDiagnostics.CreateRequestFailedException(message.Response);
494switch (message.Response.Status)
499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
501return Response.FromValue(value, message.Response);
504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
559switch (message.Response.Status)
564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
566return Response.FromValue(value, message.Response);
569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
631switch (message.Response.Status)
636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
638return Response.FromValue(value, message.Response);
641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
658switch (message.Response.Status)
663using var document = JsonDocument.Parse(message.Response.ContentStream);
665return Response.FromValue(value, message.Response);
668throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DiagnosticSettingsRestOperations.cs (30)
73switch (message.Response.Status)
78using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
80return Response.FromValue(value, message.Response);
83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
105switch (message.Response.Status)
110using var document = JsonDocument.Parse(message.Response.ContentStream);
112return Response.FromValue(value, message.Response);
115throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
200switch (message.Response.Status)
205using var document = JsonDocument.Parse(message.Response.ContentStream);
207return Response.FromValue(value, message.Response);
210throw _clientDiagnostics.CreateRequestFailedException(message.Response);
249switch (message.Response.Status)
253return message.Response;
255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
277switch (message.Response.Status)
281return message.Response;
283throw _clientDiagnostics.CreateRequestFailedException(message.Response);
316switch (message.Response.Status)
321using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
323return Response.FromValue(value, message.Response);
326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343switch (message.Response.Status)
348using var document = JsonDocument.Parse(message.Response.ContentStream);
350return Response.FromValue(value, message.Response);
353throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LogProfilesRestOperations.cs (38)
75switch (message.Response.Status)
78return message.Response;
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
97switch (message.Response.Status)
100return message.Response;
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
163switch (message.Response.Status)
168using var document = JsonDocument.Parse(message.Response.ContentStream);
170return Response.FromValue(value, message.Response);
173throw _clientDiagnostics.CreateRequestFailedException(message.Response);
216switch (message.Response.Status)
221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
223return Response.FromValue(value, message.Response);
226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
248switch (message.Response.Status)
253using var document = JsonDocument.Parse(message.Response.ContentStream);
255return Response.FromValue(value, message.Response);
258throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
333switch (message.Response.Status)
338using var document = JsonDocument.Parse(message.Response.ContentStream);
340return Response.FromValue(value, message.Response);
343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
389switch (message.Response.Status)
394using var document = JsonDocument.Parse(message.Response.ContentStream);
396return Response.FromValue(value, message.Response);
399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricAlertsRestOperations.cs (46)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
303switch (message.Response.Status)
308using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
310return Response.FromValue(value, message.Response);
313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
340switch (message.Response.Status)
345using var document = JsonDocument.Parse(message.Response.ContentStream);
347return Response.FromValue(value, message.Response);
350throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
491return message.Response;
493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
515switch (message.Response.Status)
519return message.Response;
521throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ScheduledQueryRulesRestOperations.cs (46)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
274switch (message.Response.Status)
279using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
281return Response.FromValue(value, message.Response);
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311switch (message.Response.Status)
316using var document = JsonDocument.Parse(message.Response.ContentStream);
318return Response.FromValue(value, message.Response);
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
362switch (message.Response.Status)
366return message.Response;
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
394return message.Response;
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
448switch (message.Response.Status)
453using var document = JsonDocument.Parse(message.Response.ContentStream);
455return Response.FromValue(value, message.Response);
458throw _clientDiagnostics.CreateRequestFailedException(message.Response);
498switch (message.Response.Status)
503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
505return Response.FromValue(value, message.Response);
508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.KeyVault (174)
Generated\PrivateEndpointConnectionsRestOperations.cs (26)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
134switch (message.Response.Status)
139using var document = JsonDocument.Parse(message.Response.ContentStream);
141return Response.FromValue(value, message.Response);
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201var headers = new PrivateEndpointConnectionsPutHeaders(message.Response);
202switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return ResponseWithHeaders.FromValue(value, headers, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
244var headers = new PrivateEndpointConnectionsPutHeaders(message.Response);
245switch (message.Response.Status)
250using var document = JsonDocument.Parse(message.Response.ContentStream);
252return ResponseWithHeaders.FromValue(value, headers, message.Response);
255throw _clientDiagnostics.CreateRequestFailedException(message.Response);
303var headers = new PrivateEndpointConnectionsDeleteHeaders(message.Response);
304switch (message.Response.Status)
309return ResponseWithHeaders.FromValue(headers, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
338var headers = new PrivateEndpointConnectionsDeleteHeaders(message.Response);
339switch (message.Response.Status)
344return ResponseWithHeaders.FromValue(headers, message.Response);
346throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VaultsRestOperations.cs (122)
99switch (message.Response.Status)
103return message.Response;
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
132switch (message.Response.Status)
136return message.Response;
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
188switch (message.Response.Status)
194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
196return Response.FromValue(value, message.Response);
199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
226switch (message.Response.Status)
232using var document = JsonDocument.Parse(message.Response.ContentStream);
234return Response.FromValue(value, message.Response);
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
277switch (message.Response.Status)
280return message.Response;
282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
304switch (message.Response.Status)
307return message.Response;
309throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
445switch (message.Response.Status)
451using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
453return Response.FromValue(value, message.Response);
456throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
484switch (message.Response.Status)
490using var document = JsonDocument.Parse(message.Response.ContentStream);
492return Response.FromValue(value, message.Response);
495throw _clientDiagnostics.CreateRequestFailedException(message.Response);
535switch (message.Response.Status)
540using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
542return Response.FromValue(value, message.Response);
545throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
563switch (message.Response.Status)
568using var document = JsonDocument.Parse(message.Response.ContentStream);
570return Response.FromValue(value, message.Response);
573throw _clientDiagnostics.CreateRequestFailedException(message.Response);
604switch (message.Response.Status)
609using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
611return Response.FromValue(value, message.Response);
614throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
625switch (message.Response.Status)
630using var document = JsonDocument.Parse(message.Response.ContentStream);
632return Response.FromValue(value, message.Response);
635throw _clientDiagnostics.CreateRequestFailedException(message.Response);
661switch (message.Response.Status)
666using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
668return Response.FromValue(value, message.Response);
671throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
681switch (message.Response.Status)
686using var document = JsonDocument.Parse(message.Response.ContentStream);
688return Response.FromValue(value, message.Response);
691throw _clientDiagnostics.CreateRequestFailedException(message.Response);
732switch (message.Response.Status)
737using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
739return Response.FromValue(value, message.Response);
742throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
764switch (message.Response.Status)
769using var document = JsonDocument.Parse(message.Response.ContentStream);
771return Response.FromValue(value, message.Response);
774throw _clientDiagnostics.CreateRequestFailedException(message.Response);
815switch (message.Response.Status)
819return message.Response;
821throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
843switch (message.Response.Status)
847return message.Response;
849throw _clientDiagnostics.CreateRequestFailedException(message.Response);
881switch (message.Response.Status)
886using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
888return Response.FromValue(value, message.Response);
891throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
902switch (message.Response.Status)
907using var document = JsonDocument.Parse(message.Response.ContentStream);
909return Response.FromValue(value, message.Response);
912throw _clientDiagnostics.CreateRequestFailedException(message.Response);
949switch (message.Response.Status)
954using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
956return Response.FromValue(value, message.Response);
959throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
976switch (message.Response.Status)
981using var document = JsonDocument.Parse(message.Response.ContentStream);
983return Response.FromValue(value, message.Response);
986throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1022switch (message.Response.Status)
1027using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1029return Response.FromValue(value, message.Response);
1032throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1055switch (message.Response.Status)
1060using var document = JsonDocument.Parse(message.Response.ContentStream);
1062return Response.FromValue(value, message.Response);
1065throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1096switch (message.Response.Status)
1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1103return Response.FromValue(value, message.Response);
1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1124switch (message.Response.Status)
1129using var document = JsonDocument.Parse(message.Response.ContentStream);
1131return Response.FromValue(value, message.Response);
1134throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1164switch (message.Response.Status)
1169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1171return Response.FromValue(value, message.Response);
1174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1191switch (message.Response.Status)
1196using var document = JsonDocument.Parse(message.Response.ContentStream);
1198return Response.FromValue(value, message.Response);
1201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1232switch (message.Response.Status)
1237using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1239return Response.FromValue(value, message.Response);
1242throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1260switch (message.Response.Status)
1265using var document = JsonDocument.Parse(message.Response.ContentStream);
1267return Response.FromValue(value, message.Response);
1270throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.KeyVault.Tests (546)
Rbac\Generated\ApplicationsRestOperations.cs (116)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
222return message.Response;
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
280switch (message.Response.Status)
285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
287return Response.FromValue(value, message.Response);
290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
360switch (message.Response.Status)
363return message.Response;
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
508switch (message.Response.Status)
511return message.Response;
513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
535switch (message.Response.Status)
538return message.Response;
540throw _clientDiagnostics.CreateRequestFailedException(message.Response);
581switch (message.Response.Status)
584return message.Response;
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
611return message.Response;
613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
648switch (message.Response.Status)
653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
655return Response.FromValue(value, message.Response);
658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
675switch (message.Response.Status)
680using var document = JsonDocument.Parse(message.Response.ContentStream);
682return Response.FromValue(value, message.Response);
685throw _clientDiagnostics.CreateRequestFailedException(message.Response);
729switch (message.Response.Status)
732return message.Response;
734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
756switch (message.Response.Status)
759return message.Response;
761throw _clientDiagnostics.CreateRequestFailedException(message.Response);
796switch (message.Response.Status)
801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
803return Response.FromValue(value, message.Response);
806throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
823switch (message.Response.Status)
828using var document = JsonDocument.Parse(message.Response.ContentStream);
830return Response.FromValue(value, message.Response);
833throw _clientDiagnostics.CreateRequestFailedException(message.Response);
877switch (message.Response.Status)
880return message.Response;
882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
904switch (message.Response.Status)
907return message.Response;
909throw _clientDiagnostics.CreateRequestFailedException(message.Response);
944switch (message.Response.Status)
949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
951return Response.FromValue(value, message.Response);
954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
971switch (message.Response.Status)
976using var document = JsonDocument.Parse(message.Response.ContentStream);
978return Response.FromValue(value, message.Response);
981throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1015switch (message.Response.Status)
1020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1022return Response.FromValue(value, message.Response);
1025throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1042switch (message.Response.Status)
1047using var document = JsonDocument.Parse(message.Response.ContentStream);
1049return Response.FromValue(value, message.Response);
1052throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1087switch (message.Response.Status)
1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1094return Response.FromValue(value, message.Response);
1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1119switch (message.Response.Status)
1124using var document = JsonDocument.Parse(message.Response.ContentStream);
1126return Response.FromValue(value, message.Response);
1129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1159switch (message.Response.Status)
1164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1166return Response.FromValue(value, message.Response);
1169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1186switch (message.Response.Status)
1191using var document = JsonDocument.Parse(message.Response.ContentStream);
1193return Response.FromValue(value, message.Response);
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\DeletedApplicationsRestOperations.cs (38)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111switch (message.Response.Status)
116using var document = JsonDocument.Parse(message.Response.ContentStream);
118return Response.FromValue(value, message.Response);
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return Response.FromValue(value, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173switch (message.Response.Status)
178using var document = JsonDocument.Parse(message.Response.ContentStream);
180return Response.FromValue(value, message.Response);
183throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
220return message.Response;
222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
285return Response.FromValue(value, message.Response);
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
310using var document = JsonDocument.Parse(message.Response.ContentStream);
312return Response.FromValue(value, message.Response);
315throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
352return Response.FromValue(value, message.Response);
355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
372switch (message.Response.Status)
377using var document = JsonDocument.Parse(message.Response.ContentStream);
379return Response.FromValue(value, message.Response);
382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\GroupsRestOperations.cs (126)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
167return message.Response;
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
194return message.Response;
196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
240switch (message.Response.Status)
243return message.Response;
245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
267switch (message.Response.Status)
270return message.Response;
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
316return Response.FromValue(value, message.Response);
319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
336switch (message.Response.Status)
341using var document = JsonDocument.Parse(message.Response.ContentStream);
343return Response.FromValue(value, message.Response);
346throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
384return Response.FromValue(value, message.Response);
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
398switch (message.Response.Status)
403using var document = JsonDocument.Parse(message.Response.ContentStream);
405return Response.FromValue(value, message.Response);
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
470switch (message.Response.Status)
475using var document = JsonDocument.Parse(message.Response.ContentStream);
477return Response.FromValue(value, message.Response);
480throw _clientDiagnostics.CreateRequestFailedException(message.Response);
514switch (message.Response.Status)
519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
521return Response.FromValue(value, message.Response);
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
541switch (message.Response.Status)
546using var document = JsonDocument.Parse(message.Response.ContentStream);
548return Response.FromValue(value, message.Response);
551throw _clientDiagnostics.CreateRequestFailedException(message.Response);
585switch (message.Response.Status)
588return message.Response;
590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
656switch (message.Response.Status)
661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
663return Response.FromValue(value, message.Response);
666throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
693using var document = JsonDocument.Parse(message.Response.ContentStream);
695return Response.FromValue(value, message.Response);
698throw _clientDiagnostics.CreateRequestFailedException(message.Response);
733switch (message.Response.Status)
738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
740return Response.FromValue(value, message.Response);
743throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
760switch (message.Response.Status)
765using var document = JsonDocument.Parse(message.Response.ContentStream);
767return Response.FromValue(value, message.Response);
770throw _clientDiagnostics.CreateRequestFailedException(message.Response);
814switch (message.Response.Status)
817return message.Response;
819throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
841switch (message.Response.Status)
844return message.Response;
846throw _clientDiagnostics.CreateRequestFailedException(message.Response);
887switch (message.Response.Status)
890return message.Response;
892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
914switch (message.Response.Status)
917return message.Response;
919throw _clientDiagnostics.CreateRequestFailedException(message.Response);
953switch (message.Response.Status)
958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
960return Response.FromValue(value, message.Response);
963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
980switch (message.Response.Status)
985using var document = JsonDocument.Parse(message.Response.ContentStream);
987return Response.FromValue(value, message.Response);
990throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1024switch (message.Response.Status)
1029using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1031return Response.FromValue(value, message.Response);
1034throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1051switch (message.Response.Status)
1056using var document = JsonDocument.Parse(message.Response.ContentStream);
1058return Response.FromValue(value, message.Response);
1061throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1096switch (message.Response.Status)
1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1103return Response.FromValue(value, message.Response);
1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1128switch (message.Response.Status)
1133using var document = JsonDocument.Parse(message.Response.ContentStream);
1135return Response.FromValue(value, message.Response);
1138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1168switch (message.Response.Status)
1173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1175return Response.FromValue(value, message.Response);
1178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1195switch (message.Response.Status)
1200using var document = JsonDocument.Parse(message.Response.ContentStream);
1202return Response.FromValue(value, message.Response);
1205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1235switch (message.Response.Status)
1240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1242return Response.FromValue(value, message.Response);
1245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1262switch (message.Response.Status)
1267using var document = JsonDocument.Parse(message.Response.ContentStream);
1269return Response.FromValue(value, message.Response);
1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\OAuth2PermissionGrantRestOperations.cs (38)
80switch (message.Response.Status)
85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
87return Response.FromValue(value, message.Response);
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
152return Response.FromValue(value, message.Response);
155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
166switch (message.Response.Status)
171using var document = JsonDocument.Parse(message.Response.ContentStream);
173return Response.FromValue(value, message.Response);
176throw _clientDiagnostics.CreateRequestFailedException(message.Response);
210switch (message.Response.Status)
213return message.Response;
215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
235return message.Response;
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
271switch (message.Response.Status)
276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
278return Response.FromValue(value, message.Response);
281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
338switch (message.Response.Status)
343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
345return Response.FromValue(value, message.Response);
348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
365switch (message.Response.Status)
370using var document = JsonDocument.Parse(message.Response.ContentStream);
372return Response.FromValue(value, message.Response);
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\ObjectsRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
157switch (message.Response.Status)
162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
164return Response.FromValue(value, message.Response);
167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
184switch (message.Response.Status)
189using var document = JsonDocument.Parse(message.Response.ContentStream);
191return Response.FromValue(value, message.Response);
194throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
231return Response.FromValue(value, message.Response);
234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251switch (message.Response.Status)
256using var document = JsonDocument.Parse(message.Response.ContentStream);
258return Response.FromValue(value, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\ServicePrincipalsRestOperations.cs (96)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
228switch (message.Response.Status)
231return message.Response;
233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
255switch (message.Response.Status)
258return message.Response;
260throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
297return message.Response;
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
319return message.Response;
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
362return Response.FromValue(value, message.Response);
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
499switch (message.Response.Status)
504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
506return Response.FromValue(value, message.Response);
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
580switch (message.Response.Status)
583return message.Response;
585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
647switch (message.Response.Status)
652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
654return Response.FromValue(value, message.Response);
657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
674switch (message.Response.Status)
679using var document = JsonDocument.Parse(message.Response.ContentStream);
681return Response.FromValue(value, message.Response);
684throw _clientDiagnostics.CreateRequestFailedException(message.Response);
728switch (message.Response.Status)
731return message.Response;
733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
755switch (message.Response.Status)
758return message.Response;
760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
794switch (message.Response.Status)
799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
801return Response.FromValue(value, message.Response);
804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
821switch (message.Response.Status)
826using var document = JsonDocument.Parse(message.Response.ContentStream);
828return Response.FromValue(value, message.Response);
831throw _clientDiagnostics.CreateRequestFailedException(message.Response);
866switch (message.Response.Status)
871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
873return Response.FromValue(value, message.Response);
876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
898switch (message.Response.Status)
903using var document = JsonDocument.Parse(message.Response.ContentStream);
905return Response.FromValue(value, message.Response);
908throw _clientDiagnostics.CreateRequestFailedException(message.Response);
938switch (message.Response.Status)
943using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
945return Response.FromValue(value, message.Response);
948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
965switch (message.Response.Status)
970using var document = JsonDocument.Parse(message.Response.ContentStream);
972return Response.FromValue(value, message.Response);
975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\SignedInUserRestOperations.cs (32)
75switch (message.Response.Status)
80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
82return Response.FromValue(value, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
95switch (message.Response.Status)
100using var document = JsonDocument.Parse(message.Response.ContentStream);
102return Response.FromValue(value, message.Response);
105throw _clientDiagnostics.CreateRequestFailedException(message.Response);
131switch (message.Response.Status)
136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
138return Response.FromValue(value, message.Response);
141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
195switch (message.Response.Status)
200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
202return Response.FromValue(value, message.Response);
205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
222switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
289switch (message.Response.Status)
294using var document = JsonDocument.Parse(message.Response.ContentStream);
296return Response.FromValue(value, message.Response);
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\UsersRestOperations.cs (60)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
226return Response.FromValue(value, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
246switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
299switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
365switch (message.Response.Status)
368return message.Response;
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
436switch (message.Response.Status)
441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
443return Response.FromValue(value, message.Response);
446throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
468switch (message.Response.Status)
473using var document = JsonDocument.Parse(message.Response.ContentStream);
475return Response.FromValue(value, message.Response);
478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
512switch (message.Response.Status)
517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
519return Response.FromValue(value, message.Response);
522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
539switch (message.Response.Status)
544using var document = JsonDocument.Parse(message.Response.ContentStream);
546return Response.FromValue(value, message.Response);
549throw _clientDiagnostics.CreateRequestFailedException(message.Response);
579switch (message.Response.Status)
584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
586return Response.FromValue(value, message.Response);
589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
611using var document = JsonDocument.Parse(message.Response.ContentStream);
613return Response.FromValue(value, message.Response);
616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.MachineLearningServices (850)
Generated\CodeContainersRestOperations.cs (38)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
331switch (message.Response.Status)
335return message.Response;
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
417switch (message.Response.Status)
422using var document = JsonDocument.Parse(message.Response.ContentStream);
424return Response.FromValue(value, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CodeVersionsRestOperations.cs (38)
112switch (message.Response.Status)
118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
120return Response.FromValue(value, message.Response);
123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
156switch (message.Response.Status)
162using var document = JsonDocument.Parse(message.Response.ContentStream);
164return Response.FromValue(value, message.Response);
167throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
264switch (message.Response.Status)
269using var document = JsonDocument.Parse(message.Response.ContentStream);
271return Response.FromValue(value, message.Response);
274throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
333return message.Response;
335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
371return message.Response;
373throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
521switch (message.Response.Status)
526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
528return Response.FromValue(value, message.Response);
531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
564switch (message.Response.Status)
569using var document = JsonDocument.Parse(message.Response.ContentStream);
571return Response.FromValue(value, message.Response);
574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataContainersRestOperations.cs (38)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
331switch (message.Response.Status)
335return message.Response;
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
417switch (message.Response.Status)
422using var document = JsonDocument.Parse(message.Response.ContentStream);
424return Response.FromValue(value, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatastoresRestOperations.cs (46)
127switch (message.Response.Status)
132using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
134return Response.FromValue(value, message.Response);
137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
166switch (message.Response.Status)
171using var document = JsonDocument.Parse(message.Response.ContentStream);
173return Response.FromValue(value, message.Response);
176throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
228return message.Response;
230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257switch (message.Response.Status)
261return message.Response;
263throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
316using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
318return Response.FromValue(value, message.Response);
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
348switch (message.Response.Status)
353using var document = JsonDocument.Parse(message.Response.ContentStream);
355return Response.FromValue(value, message.Response);
358throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
423return Response.FromValue(value, message.Response);
426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
458switch (message.Response.Status)
464using var document = JsonDocument.Parse(message.Response.ContentStream);
466return Response.FromValue(value, message.Response);
469throw _clientDiagnostics.CreateRequestFailedException(message.Response);
518switch (message.Response.Status)
523using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
525return Response.FromValue(value, message.Response);
528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
555switch (message.Response.Status)
560using var document = JsonDocument.Parse(message.Response.ContentStream);
562return Response.FromValue(value, message.Response);
565throw _clientDiagnostics.CreateRequestFailedException(message.Response);
612switch (message.Response.Status)
617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
619return Response.FromValue(value, message.Response);
622throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataVersionsRestOperations.cs (38)
112switch (message.Response.Status)
118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
120return Response.FromValue(value, message.Response);
123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
156switch (message.Response.Status)
162using var document = JsonDocument.Parse(message.Response.ContentStream);
164return Response.FromValue(value, message.Response);
167throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
264switch (message.Response.Status)
269using var document = JsonDocument.Parse(message.Response.ContentStream);
271return Response.FromValue(value, message.Response);
274throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
333return message.Response;
335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
371return message.Response;
373throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
521switch (message.Response.Status)
526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
528return Response.FromValue(value, message.Response);
531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
564switch (message.Response.Status)
569using var document = JsonDocument.Parse(message.Response.ContentStream);
571return Response.FromValue(value, message.Response);
574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EnvironmentContainersRestOperations.cs (38)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
331switch (message.Response.Status)
335return message.Response;
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
417switch (message.Response.Status)
422using var document = JsonDocument.Parse(message.Response.ContentStream);
424return Response.FromValue(value, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EnvironmentSpecificationVersionsRestOperations.cs (38)
111switch (message.Response.Status)
117using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
119return Response.FromValue(value, message.Response);
122throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
154switch (message.Response.Status)
160using var document = JsonDocument.Parse(message.Response.ContentStream);
162return Response.FromValue(value, message.Response);
165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
220switch (message.Response.Status)
225using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
227return Response.FromValue(value, message.Response);
230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
262switch (message.Response.Status)
267using var document = JsonDocument.Parse(message.Response.ContentStream);
269return Response.FromValue(value, message.Response);
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
327switch (message.Response.Status)
331return message.Response;
333throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
365switch (message.Response.Status)
369return message.Response;
371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
434switch (message.Response.Status)
439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
441return Response.FromValue(value, message.Response);
444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
473switch (message.Response.Status)
478using var document = JsonDocument.Parse(message.Response.ContentStream);
480return Response.FromValue(value, message.Response);
483throw _clientDiagnostics.CreateRequestFailedException(message.Response);
530switch (message.Response.Status)
535using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
537return Response.FromValue(value, message.Response);
540throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
574switch (message.Response.Status)
579using var document = JsonDocument.Parse(message.Response.ContentStream);
581return Response.FromValue(value, message.Response);
584throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestOperations.cs (50)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
303return message.Response;
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
337return message.Response;
339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
386switch (message.Response.Status)
391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
393return Response.FromValue(value, message.Response);
396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
419switch (message.Response.Status)
424using var document = JsonDocument.Parse(message.Response.ContentStream);
426return Response.FromValue(value, message.Response);
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
481return message.Response;
483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
510switch (message.Response.Status)
513return message.Response;
515throw _clientDiagnostics.CreateRequestFailedException(message.Response);
570switch (message.Response.Status)
574return message.Response;
576throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
612return message.Response;
614throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
660using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
662return Response.FromValue(value, message.Response);
665throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
693switch (message.Response.Status)
698using var document = JsonDocument.Parse(message.Response.ContentStream);
700return Response.FromValue(value, message.Response);
703throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LabelingJobsRestOperations.cs (64)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
213switch (message.Response.Status)
218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
220return Response.FromValue(value, message.Response);
223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
252switch (message.Response.Status)
257using var document = JsonDocument.Parse(message.Response.ContentStream);
259return Response.FromValue(value, message.Response);
262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
310switch (message.Response.Status)
314return message.Response;
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343switch (message.Response.Status)
347return message.Response;
349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
401switch (message.Response.Status)
406using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
408return Response.FromValue(value, message.Response);
411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
435switch (message.Response.Status)
440using var document = JsonDocument.Parse(message.Response.ContentStream);
442return Response.FromValue(value, message.Response);
445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
494switch (message.Response.Status)
497return message.Response;
499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
529return message.Response;
531throw _clientDiagnostics.CreateRequestFailedException(message.Response);
580switch (message.Response.Status)
583return message.Response;
585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
612switch (message.Response.Status)
615return message.Response;
617throw _clientDiagnostics.CreateRequestFailedException(message.Response);
674switch (message.Response.Status)
677return message.Response;
679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
707switch (message.Response.Status)
710return message.Response;
712throw _clientDiagnostics.CreateRequestFailedException(message.Response);
763switch (message.Response.Status)
768using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
770return Response.FromValue(value, message.Response);
773throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
801switch (message.Response.Status)
806using var document = JsonDocument.Parse(message.Response.ContentStream);
808return Response.FromValue(value, message.Response);
811throw _clientDiagnostics.CreateRequestFailedException(message.Response);
853switch (message.Response.Status)
858using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
860return Response.FromValue(value, message.Response);
863throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
892switch (message.Response.Status)
897using var document = JsonDocument.Parse(message.Response.ContentStream);
899return Response.FromValue(value, message.Response);
902throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LinkedServicesRestOperations.cs (30)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
190switch (message.Response.Status)
195using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
197return Response.FromValue(value, message.Response);
200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
237using var document = JsonDocument.Parse(message.Response.ContentStream);
239return Response.FromValue(value, message.Response);
242throw _clientDiagnostics.CreateRequestFailedException(message.Response);
290switch (message.Response.Status)
295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
297return Response.FromValue(value, message.Response);
300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
327switch (message.Response.Status)
332using var document = JsonDocument.Parse(message.Response.ContentStream);
334return Response.FromValue(value, message.Response);
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385switch (message.Response.Status)
389return message.Response;
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
418switch (message.Response.Status)
422return message.Response;
424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MachineLearningComputeRestOperations.cs (80)
96switch (message.Response.Status)
101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
103return Response.FromValue(value, message.Response);
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
136return Response.FromValue(value, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
187switch (message.Response.Status)
192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
194return Response.FromValue(value, message.Response);
197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
224switch (message.Response.Status)
229using var document = JsonDocument.Parse(message.Response.ContentStream);
231return Response.FromValue(value, message.Response);
234throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291var headers = new MachineLearningComputeCreateOrUpdateHeaders(message.Response);
292switch (message.Response.Status)
296return ResponseWithHeaders.FromValue(headers, message.Response);
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
330var headers = new MachineLearningComputeCreateOrUpdateHeaders(message.Response);
331switch (message.Response.Status)
335return ResponseWithHeaders.FromValue(headers, message.Response);
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
394switch (message.Response.Status)
397return message.Response;
399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
431switch (message.Response.Status)
434return message.Response;
436throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486var headers = new MachineLearningComputeDeleteHeaders(message.Response);
487switch (message.Response.Status)
491return ResponseWithHeaders.FromValue(headers, message.Response);
493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
521var headers = new MachineLearningComputeDeleteHeaders(message.Response);
522switch (message.Response.Status)
526return ResponseWithHeaders.FromValue(headers, message.Response);
528throw _clientDiagnostics.CreateRequestFailedException(message.Response);
577switch (message.Response.Status)
582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
584return Response.FromValue(value, message.Response);
587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
614switch (message.Response.Status)
619using var document = JsonDocument.Parse(message.Response.ContentStream);
621return Response.FromValue(value, message.Response);
624throw _clientDiagnostics.CreateRequestFailedException(message.Response);
673switch (message.Response.Status)
678using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
680return Response.FromValue(value, message.Response);
683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
710switch (message.Response.Status)
715using var document = JsonDocument.Parse(message.Response.ContentStream);
717return Response.FromValue(value, message.Response);
720throw _clientDiagnostics.CreateRequestFailedException(message.Response);
769switch (message.Response.Status)
772return message.Response;
774throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
801switch (message.Response.Status)
804return message.Response;
806throw _clientDiagnostics.CreateRequestFailedException(message.Response);
855switch (message.Response.Status)
858return message.Response;
860throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
887switch (message.Response.Status)
890return message.Response;
892throw _clientDiagnostics.CreateRequestFailedException(message.Response);
941switch (message.Response.Status)
944return message.Response;
946throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
973switch (message.Response.Status)
976return message.Response;
978throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1019switch (message.Response.Status)
1024using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1026return Response.FromValue(value, message.Response);
1029throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1057switch (message.Response.Status)
1062using var document = JsonDocument.Parse(message.Response.ContentStream);
1064return Response.FromValue(value, message.Response);
1067throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MachineLearningServiceRestOperations.cs (38)
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
177switch (message.Response.Status)
182using var document = JsonDocument.Parse(message.Response.ContentStream);
184return Response.FromValue(value, message.Response);
187throw _clientDiagnostics.CreateRequestFailedException(message.Response);
240switch (message.Response.Status)
245using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
247return Response.FromValue(value, message.Response);
250throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
278switch (message.Response.Status)
283using var document = JsonDocument.Parse(message.Response.ContentStream);
285return Response.FromValue(value, message.Response);
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
336switch (message.Response.Status)
340return message.Response;
342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
369switch (message.Response.Status)
373return message.Response;
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432var headers = new MachineLearningServiceCreateOrUpdateHeaders(message.Response);
433switch (message.Response.Status)
437return ResponseWithHeaders.FromValue(headers, message.Response);
439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
471var headers = new MachineLearningServiceCreateOrUpdateHeaders(message.Response);
472switch (message.Response.Status)
476return ResponseWithHeaders.FromValue(headers, message.Response);
478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
527switch (message.Response.Status)
532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
534return Response.FromValue(value, message.Response);
537throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
578using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelContainersRestOperations.cs (38)
101switch (message.Response.Status)
106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
108return Response.FromValue(value, message.Response);
111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
135switch (message.Response.Status)
140using var document = JsonDocument.Parse(message.Response.ContentStream);
142return Response.FromValue(value, message.Response);
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
246using var document = JsonDocument.Parse(message.Response.ContentStream);
248return Response.FromValue(value, message.Response);
251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
299switch (message.Response.Status)
304using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
306return Response.FromValue(value, message.Response);
309throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
336switch (message.Response.Status)
341using var document = JsonDocument.Parse(message.Response.ContentStream);
343return Response.FromValue(value, message.Response);
346throw _clientDiagnostics.CreateRequestFailedException(message.Response);
394switch (message.Response.Status)
398return message.Response;
400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
431return message.Response;
433throw _clientDiagnostics.CreateRequestFailedException(message.Response);
475switch (message.Response.Status)
480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
482return Response.FromValue(value, message.Response);
485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelVersionsRestOperations.cs (38)
143switch (message.Response.Status)
148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
150return Response.FromValue(value, message.Response);
153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
189switch (message.Response.Status)
194using var document = JsonDocument.Parse(message.Response.ContentStream);
196return Response.FromValue(value, message.Response);
199throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
268using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
270return Response.FromValue(value, message.Response);
273throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
372switch (message.Response.Status)
377using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
379return Response.FromValue(value, message.Response);
382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
414switch (message.Response.Status)
419using var document = JsonDocument.Parse(message.Response.ContentStream);
421return Response.FromValue(value, message.Response);
424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
483return message.Response;
485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
521return message.Response;
523throw _clientDiagnostics.CreateRequestFailedException(message.Response);
577switch (message.Response.Status)
582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
584return Response.FromValue(value, message.Response);
587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
628switch (message.Response.Status)
633using var document = JsonDocument.Parse(message.Response.ContentStream);
635return Response.FromValue(value, message.Response);
638throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QuotasRestOperations.cs (24)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
130using var document = JsonDocument.Parse(message.Response.ContentStream);
132return Response.FromValue(value, message.Response);
135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
170switch (message.Response.Status)
175using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
177return Response.FromValue(value, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
242switch (message.Response.Status)
247using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
249return Response.FromValue(value, message.Response);
252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
274switch (message.Response.Status)
279using var document = JsonDocument.Parse(message.Response.ContentStream);
281return Response.FromValue(value, message.Response);
284throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceConnectionsRestOperations.cs (30)
101switch (message.Response.Status)
106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
108return Response.FromValue(value, message.Response);
111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
135switch (message.Response.Status)
140using var document = JsonDocument.Parse(message.Response.ContentStream);
142return Response.FromValue(value, message.Response);
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
202switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
244switch (message.Response.Status)
249using var document = JsonDocument.Parse(message.Response.ContentStream);
251return Response.FromValue(value, message.Response);
254throw _clientDiagnostics.CreateRequestFailedException(message.Response);
302switch (message.Response.Status)
307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
309return Response.FromValue(value, message.Response);
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
339switch (message.Response.Status)
344using var document = JsonDocument.Parse(message.Response.ContentStream);
346return Response.FromValue(value, message.Response);
349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
397switch (message.Response.Status)
401return message.Response;
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
430switch (message.Response.Status)
434return message.Response;
436throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspacesRestOperations.cs (74)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
122switch (message.Response.Status)
127using var document = JsonDocument.Parse(message.Response.ContentStream);
129return Response.FromValue(value, message.Response);
132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187return message.Response;
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221return message.Response;
223throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269return message.Response;
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
298return message.Response;
300throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
437switch (message.Response.Status)
442using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
444return Response.FromValue(value, message.Response);
447throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
517switch (message.Response.Status)
522using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
524return Response.FromValue(value, message.Response);
527throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
549switch (message.Response.Status)
554using var document = JsonDocument.Parse(message.Response.ContentStream);
556return Response.FromValue(value, message.Response);
559throw _clientDiagnostics.CreateRequestFailedException(message.Response);
601switch (message.Response.Status)
604return message.Response;
606throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
628switch (message.Response.Status)
631return message.Response;
633throw _clientDiagnostics.CreateRequestFailedException(message.Response);
664switch (message.Response.Status)
669using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
671return Response.FromValue(value, message.Response);
674throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
685switch (message.Response.Status)
690using var document = JsonDocument.Parse(message.Response.ContentStream);
692return Response.FromValue(value, message.Response);
695throw _clientDiagnostics.CreateRequestFailedException(message.Response);
731switch (message.Response.Status)
736using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
738return Response.FromValue(value, message.Response);
741throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
764switch (message.Response.Status)
769using var document = JsonDocument.Parse(message.Response.ContentStream);
771return Response.FromValue(value, message.Response);
774throw _clientDiagnostics.CreateRequestFailedException(message.Response);
805switch (message.Response.Status)
810using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
812return Response.FromValue(value, message.Response);
815throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
833switch (message.Response.Status)
838using var document = JsonDocument.Parse(message.Response.ContentStream);
840return Response.FromValue(value, message.Response);
843throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Network (4388)
Generated\ApplicationGatewaysRestOperations.cs (148)
84switch (message.Response.Status)
89return message.Response;
91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118return message.Response;
120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
161switch (message.Response.Status)
166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
168return Response.FromValue(value, message.Response);
171throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
193switch (message.Response.Status)
198using var document = JsonDocument.Parse(message.Response.ContentStream);
200return Response.FromValue(value, message.Response);
203throw _clientDiagnostics.CreateRequestFailedException(message.Response);
253switch (message.Response.Status)
257return message.Response;
259throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
286switch (message.Response.Status)
290return message.Response;
292throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
349return Response.FromValue(value, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return Response.FromValue(value, message.Response);
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
424switch (message.Response.Status)
429using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
431return Response.FromValue(value, message.Response);
434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
451switch (message.Response.Status)
456using var document = JsonDocument.Parse(message.Response.ContentStream);
458return Response.FromValue(value, message.Response);
461throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
494return Response.FromValue(value, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
507switch (message.Response.Status)
512using var document = JsonDocument.Parse(message.Response.ContentStream);
514return Response.FromValue(value, message.Response);
517throw _clientDiagnostics.CreateRequestFailedException(message.Response);
559switch (message.Response.Status)
563return message.Response;
565throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
587switch (message.Response.Status)
591return message.Response;
593throw _clientDiagnostics.CreateRequestFailedException(message.Response);
635switch (message.Response.Status)
639return message.Response;
641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
663switch (message.Response.Status)
667return message.Response;
669throw _clientDiagnostics.CreateRequestFailedException(message.Response);
716switch (message.Response.Status)
720return message.Response;
722throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
745switch (message.Response.Status)
749return message.Response;
751throw _clientDiagnostics.CreateRequestFailedException(message.Response);
807switch (message.Response.Status)
811return message.Response;
813throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
841switch (message.Response.Status)
845return message.Response;
847throw _clientDiagnostics.CreateRequestFailedException(message.Response);
873switch (message.Response.Status)
878using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
885return Response.FromValue(value, message.Response);
888throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
898switch (message.Response.Status)
903using var document = JsonDocument.Parse(message.Response.ContentStream);
910return Response.FromValue(value, message.Response);
913throw _clientDiagnostics.CreateRequestFailedException(message.Response);
939switch (message.Response.Status)
944using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
951return Response.FromValue(value, message.Response);
954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
964switch (message.Response.Status)
969using var document = JsonDocument.Parse(message.Response.ContentStream);
976return Response.FromValue(value, message.Response);
979throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1005switch (message.Response.Status)
1010using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1017return Response.FromValue(value, message.Response);
1020throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1030switch (message.Response.Status)
1035using var document = JsonDocument.Parse(message.Response.ContentStream);
1042return Response.FromValue(value, message.Response);
1045throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1071switch (message.Response.Status)
1076using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1078return Response.FromValue(value, message.Response);
1081throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1091switch (message.Response.Status)
1096using var document = JsonDocument.Parse(message.Response.ContentStream);
1098return Response.FromValue(value, message.Response);
1101throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1127switch (message.Response.Status)
1132using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1134return Response.FromValue(value, message.Response);
1137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1147switch (message.Response.Status)
1152using var document = JsonDocument.Parse(message.Response.ContentStream);
1154return Response.FromValue(value, message.Response);
1157throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1183switch (message.Response.Status)
1188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1190return Response.FromValue(value, message.Response);
1193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1203switch (message.Response.Status)
1208using var document = JsonDocument.Parse(message.Response.ContentStream);
1210return Response.FromValue(value, message.Response);
1213throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1247switch (message.Response.Status)
1252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1254return Response.FromValue(value, message.Response);
1257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1274switch (message.Response.Status)
1279using var document = JsonDocument.Parse(message.Response.ContentStream);
1281return Response.FromValue(value, message.Response);
1284throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1319switch (message.Response.Status)
1324using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1326return Response.FromValue(value, message.Response);
1329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1351switch (message.Response.Status)
1356using var document = JsonDocument.Parse(message.Response.ContentStream);
1358return Response.FromValue(value, message.Response);
1361throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1391switch (message.Response.Status)
1396using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1398return Response.FromValue(value, message.Response);
1401throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1418switch (message.Response.Status)
1423using var document = JsonDocument.Parse(message.Response.ContentStream);
1425return Response.FromValue(value, message.Response);
1428throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1458switch (message.Response.Status)
1463using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1465return Response.FromValue(value, message.Response);
1468throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1485switch (message.Response.Status)
1490using var document = JsonDocument.Parse(message.Response.ContentStream);
1492return Response.FromValue(value, message.Response);
1495throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ApplicationSecurityGroupsRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
160switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
197using var document = JsonDocument.Parse(message.Response.ContentStream);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
256return message.Response;
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
414switch (message.Response.Status)
419using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
421return Response.FromValue(value, message.Response);
424throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
434switch (message.Response.Status)
439using var document = JsonDocument.Parse(message.Response.ContentStream);
441return Response.FromValue(value, message.Response);
444throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
486return Response.FromValue(value, message.Response);
489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
546switch (message.Response.Status)
551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
553return Response.FromValue(value, message.Response);
556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
578using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
618switch (message.Response.Status)
623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
625return Response.FromValue(value, message.Response);
628throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AvailablePrivateEndpointTypesRestOperations.cs (32)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
156switch (message.Response.Status)
161using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
163return Response.FromValue(value, message.Response);
166throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
188switch (message.Response.Status)
193using var document = JsonDocument.Parse(message.Response.ContentStream);
195return Response.FromValue(value, message.Response);
198throw _clientDiagnostics.CreateRequestFailedException(message.Response);
233switch (message.Response.Status)
238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
240return Response.FromValue(value, message.Response);
243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
265switch (message.Response.Status)
270using var document = JsonDocument.Parse(message.Response.ContentStream);
272return Response.FromValue(value, message.Response);
275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
315switch (message.Response.Status)
320using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
322return Response.FromValue(value, message.Response);
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
352switch (message.Response.Status)
357using var document = JsonDocument.Parse(message.Response.ContentStream);
359return Response.FromValue(value, message.Response);
362throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AvailableServiceAliasesRestOperations.cs (32)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
156switch (message.Response.Status)
161using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
163return Response.FromValue(value, message.Response);
166throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
188switch (message.Response.Status)
193using var document = JsonDocument.Parse(message.Response.ContentStream);
195return Response.FromValue(value, message.Response);
198throw _clientDiagnostics.CreateRequestFailedException(message.Response);
233switch (message.Response.Status)
238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
240return Response.FromValue(value, message.Response);
243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
265switch (message.Response.Status)
270using var document = JsonDocument.Parse(message.Response.ContentStream);
272return Response.FromValue(value, message.Response);
275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
315switch (message.Response.Status)
320using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
322return Response.FromValue(value, message.Response);
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
352switch (message.Response.Status)
357using var document = JsonDocument.Parse(message.Response.ContentStream);
359return Response.FromValue(value, message.Response);
362throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AzureFirewallsRestOperations.cs (58)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
160switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
197using var document = JsonDocument.Parse(message.Response.ContentStream);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
256return message.Response;
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
345return message.Response;
347throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
374switch (message.Response.Status)
378return message.Response;
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
420using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
422return Response.FromValue(value, message.Response);
425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
483using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
485return Response.FromValue(value, message.Response);
488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
543switch (message.Response.Status)
548using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
550return Response.FromValue(value, message.Response);
553throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
575switch (message.Response.Status)
580using var document = JsonDocument.Parse(message.Response.ContentStream);
582return Response.FromValue(value, message.Response);
585throw _clientDiagnostics.CreateRequestFailedException(message.Response);
615switch (message.Response.Status)
620using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
622return Response.FromValue(value, message.Response);
625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
642switch (message.Response.Status)
647using var document = JsonDocument.Parse(message.Response.ContentStream);
649return Response.FromValue(value, message.Response);
652throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BastionHostsRestOperations.cs (52)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
160switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
197using var document = JsonDocument.Parse(message.Response.ContentStream);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
256return message.Response;
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
317switch (message.Response.Status)
322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
324return Response.FromValue(value, message.Response);
327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
337switch (message.Response.Status)
342using var document = JsonDocument.Parse(message.Response.ContentStream);
344return Response.FromValue(value, message.Response);
347throw _clientDiagnostics.CreateRequestFailedException(message.Response);
382switch (message.Response.Status)
387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
389return Response.FromValue(value, message.Response);
392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
409switch (message.Response.Status)
414using var document = JsonDocument.Parse(message.Response.ContentStream);
416return Response.FromValue(value, message.Response);
419throw _clientDiagnostics.CreateRequestFailedException(message.Response);
449switch (message.Response.Status)
454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
456return Response.FromValue(value, message.Response);
459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
476switch (message.Response.Status)
481using var document = JsonDocument.Parse(message.Response.ContentStream);
483return Response.FromValue(value, message.Response);
486throw _clientDiagnostics.CreateRequestFailedException(message.Response);
521switch (message.Response.Status)
526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
528return Response.FromValue(value, message.Response);
531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
553switch (message.Response.Status)
558using var document = JsonDocument.Parse(message.Response.ContentStream);
560return Response.FromValue(value, message.Response);
563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ConnectionMonitorsRestOperations.cs (54)
99switch (message.Response.Status)
103return message.Response;
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
137switch (message.Response.Status)
141return message.Response;
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
290return message.Response;
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
319switch (message.Response.Status)
323return message.Response;
325throw _clientDiagnostics.CreateRequestFailedException(message.Response);
382switch (message.Response.Status)
387using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
389return Response.FromValue(value, message.Response);
392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
424switch (message.Response.Status)
429using var document = JsonDocument.Parse(message.Response.ContentStream);
431return Response.FromValue(value, message.Response);
434throw _clientDiagnostics.CreateRequestFailedException(message.Response);
483switch (message.Response.Status)
487return message.Response;
489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
516switch (message.Response.Status)
520return message.Response;
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
571switch (message.Response.Status)
575return message.Response;
577throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
604switch (message.Response.Status)
608return message.Response;
610throw _clientDiagnostics.CreateRequestFailedException(message.Response);
659switch (message.Response.Status)
663return message.Response;
665throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
692switch (message.Response.Status)
696return message.Response;
698throw _clientDiagnostics.CreateRequestFailedException(message.Response);
740switch (message.Response.Status)
745using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
747return Response.FromValue(value, message.Response);
750throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
772switch (message.Response.Status)
777using var document = JsonDocument.Parse(message.Response.ContentStream);
779return Response.FromValue(value, message.Response);
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DdosProtectionPlansRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
160switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
197using var document = JsonDocument.Parse(message.Response.ContentStream);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
256return message.Response;
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
414switch (message.Response.Status)
419using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
421return Response.FromValue(value, message.Response);
424throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
434switch (message.Response.Status)
439using var document = JsonDocument.Parse(message.Response.ContentStream);
441return Response.FromValue(value, message.Response);
444throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
486return Response.FromValue(value, message.Response);
489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
546switch (message.Response.Status)
551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
553return Response.FromValue(value, message.Response);
556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
578using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
618switch (message.Response.Status)
623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
625return Response.FromValue(value, message.Response);
628throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DefaultSecurityRulesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRouteCircuitAuthorizationsRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRouteCircuitConnectionsRestOperations.cs (36)
97switch (message.Response.Status)
102return message.Response;
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
141return message.Response;
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
198switch (message.Response.Status)
203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
205return Response.FromValue(value, message.Response);
208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
314switch (message.Response.Status)
318return message.Response;
320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
361return message.Response;
363throw _clientDiagnostics.CreateRequestFailedException(message.Response);
412switch (message.Response.Status)
417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
419return Response.FromValue(value, message.Response);
422throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
449switch (message.Response.Status)
454using var document = JsonDocument.Parse(message.Response.ContentStream);
456return Response.FromValue(value, message.Response);
459throw _clientDiagnostics.CreateRequestFailedException(message.Response);
504switch (message.Response.Status)
509using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
511return Response.FromValue(value, message.Response);
514throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
546switch (message.Response.Status)
551using var document = JsonDocument.Parse(message.Response.ContentStream);
553return Response.FromValue(value, message.Response);
556throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRouteCircuitPeeringsRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRouteCircuitsRestOperations.cs (94)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
160switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
197using var document = JsonDocument.Parse(message.Response.ContentStream);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
256return message.Response;
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
447return message.Response;
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
481switch (message.Response.Status)
485return message.Response;
487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
542switch (message.Response.Status)
546return message.Response;
548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580switch (message.Response.Status)
584return message.Response;
586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
641switch (message.Response.Status)
645return message.Response;
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
679switch (message.Response.Status)
683return message.Response;
685throw _clientDiagnostics.CreateRequestFailedException(message.Response);
727switch (message.Response.Status)
732using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
734return Response.FromValue(value, message.Response);
737throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
759switch (message.Response.Status)
764using var document = JsonDocument.Parse(message.Response.ContentStream);
766return Response.FromValue(value, message.Response);
769throw _clientDiagnostics.CreateRequestFailedException(message.Response);
818switch (message.Response.Status)
823using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
825return Response.FromValue(value, message.Response);
828throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
855switch (message.Response.Status)
860using var document = JsonDocument.Parse(message.Response.ContentStream);
862return Response.FromValue(value, message.Response);
865throw _clientDiagnostics.CreateRequestFailedException(message.Response);
900switch (message.Response.Status)
905using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
907return Response.FromValue(value, message.Response);
910throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
927switch (message.Response.Status)
932using var document = JsonDocument.Parse(message.Response.ContentStream);
934return Response.FromValue(value, message.Response);
937throw _clientDiagnostics.CreateRequestFailedException(message.Response);
963switch (message.Response.Status)
968using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
970return Response.FromValue(value, message.Response);
973throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
983switch (message.Response.Status)
988using var document = JsonDocument.Parse(message.Response.ContentStream);
990return Response.FromValue(value, message.Response);
993throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1028switch (message.Response.Status)
1033using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1035return Response.FromValue(value, message.Response);
1038throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1060switch (message.Response.Status)
1065using var document = JsonDocument.Parse(message.Response.ContentStream);
1067return Response.FromValue(value, message.Response);
1070throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1100switch (message.Response.Status)
1105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1107return Response.FromValue(value, message.Response);
1110throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1127switch (message.Response.Status)
1132using var document = JsonDocument.Parse(message.Response.ContentStream);
1134return Response.FromValue(value, message.Response);
1137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRouteCrossConnectionPeeringsRestOperations.cs (36)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179return message.Response;
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
208switch (message.Response.Status)
213return message.Response;
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
263switch (message.Response.Status)
268using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
270return Response.FromValue(value, message.Response);
273throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
300switch (message.Response.Status)
305using var document = JsonDocument.Parse(message.Response.ContentStream);
307return Response.FromValue(value, message.Response);
310throw _clientDiagnostics.CreateRequestFailedException(message.Response);
367switch (message.Response.Status)
371return message.Response;
373throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
405switch (message.Response.Status)
409return message.Response;
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRouteCrossConnectionsRestOperations.cs (72)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
303switch (message.Response.Status)
306return message.Response;
308throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
335switch (message.Response.Status)
338return message.Response;
340throw _clientDiagnostics.CreateRequestFailedException(message.Response);
390switch (message.Response.Status)
395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
397return Response.FromValue(value, message.Response);
400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
432using var document = JsonDocument.Parse(message.Response.ContentStream);
434return Response.FromValue(value, message.Response);
437throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
496return message.Response;
498throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
530switch (message.Response.Status)
534return message.Response;
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
591switch (message.Response.Status)
595return message.Response;
597throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
629switch (message.Response.Status)
633return message.Response;
635throw _clientDiagnostics.CreateRequestFailedException(message.Response);
690switch (message.Response.Status)
694return message.Response;
696throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
728switch (message.Response.Status)
732return message.Response;
734throw _clientDiagnostics.CreateRequestFailedException(message.Response);
764switch (message.Response.Status)
769using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
771return Response.FromValue(value, message.Response);
774throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
791switch (message.Response.Status)
796using var document = JsonDocument.Parse(message.Response.ContentStream);
798return Response.FromValue(value, message.Response);
801throw _clientDiagnostics.CreateRequestFailedException(message.Response);
836switch (message.Response.Status)
841using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
843return Response.FromValue(value, message.Response);
846throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
873using var document = JsonDocument.Parse(message.Response.ContentStream);
875return Response.FromValue(value, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRouteGatewaysRestOperations.cs (36)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
220switch (message.Response.Status)
224return message.Response;
226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
253switch (message.Response.Status)
257return message.Response;
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
300switch (message.Response.Status)
305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
307return Response.FromValue(value, message.Response);
310throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
337using var document = JsonDocument.Parse(message.Response.ContentStream);
339return Response.FromValue(value, message.Response);
342throw _clientDiagnostics.CreateRequestFailedException(message.Response);
383switch (message.Response.Status)
388return message.Response;
390throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
412switch (message.Response.Status)
417return message.Response;
419throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRouteLinksRestOperations.cs (24)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRoutePortsLocationsRestOperations.cs (24)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
132switch (message.Response.Status)
137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
139return Response.FromValue(value, message.Response);
142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
159switch (message.Response.Status)
164using var document = JsonDocument.Parse(message.Response.ContentStream);
166return Response.FromValue(value, message.Response);
169throw _clientDiagnostics.CreateRequestFailedException(message.Response);
199switch (message.Response.Status)
204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
206return Response.FromValue(value, message.Response);
209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
226switch (message.Response.Status)
231using var document = JsonDocument.Parse(message.Response.ContentStream);
233return Response.FromValue(value, message.Response);
236throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExpressRoutePortsRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
160switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
197using var document = JsonDocument.Parse(message.Response.ContentStream);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
256return message.Response;
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
430return Response.FromValue(value, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
551switch (message.Response.Status)
556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
558return Response.FromValue(value, message.Response);
561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
583switch (message.Response.Status)
588using var document = JsonDocument.Parse(message.Response.ContentStream);
590return Response.FromValue(value, message.Response);
593throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623switch (message.Response.Status)
628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
630return Response.FromValue(value, message.Response);
633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FirewallPoliciesRestOperations.cs (52)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
332switch (message.Response.Status)
337using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
339return Response.FromValue(value, message.Response);
342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
395switch (message.Response.Status)
400using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
402return Response.FromValue(value, message.Response);
405throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
415switch (message.Response.Status)
420using var document = JsonDocument.Parse(message.Response.ContentStream);
422return Response.FromValue(value, message.Response);
425throw _clientDiagnostics.CreateRequestFailedException(message.Response);
460switch (message.Response.Status)
465using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
467return Response.FromValue(value, message.Response);
470throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
492switch (message.Response.Status)
497using var document = JsonDocument.Parse(message.Response.ContentStream);
499return Response.FromValue(value, message.Response);
502throw _clientDiagnostics.CreateRequestFailedException(message.Response);
532switch (message.Response.Status)
537using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
539return Response.FromValue(value, message.Response);
542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FirewallPolicyRuleGroupsRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FlowLogsRestOperations.cs (36)
99switch (message.Response.Status)
103return message.Response;
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
137switch (message.Response.Status)
141return message.Response;
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
290return message.Response;
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
319switch (message.Response.Status)
323return message.Response;
325throw _clientDiagnostics.CreateRequestFailedException(message.Response);
367switch (message.Response.Status)
372using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
374return Response.FromValue(value, message.Response);
377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
399switch (message.Response.Status)
404using var document = JsonDocument.Parse(message.Response.ContentStream);
406return Response.FromValue(value, message.Response);
409throw _clientDiagnostics.CreateRequestFailedException(message.Response);
449switch (message.Response.Status)
454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
456return Response.FromValue(value, message.Response);
459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
486switch (message.Response.Status)
491using var document = JsonDocument.Parse(message.Response.ContentStream);
493return Response.FromValue(value, message.Response);
496throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\HubRouteTablesRestOperations.cs (36)
99switch (message.Response.Status)
103return message.Response;
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
137switch (message.Response.Status)
141return message.Response;
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
291return message.Response;
293throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
320switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\HubVirtualNetworkConnectionsRestOperations.cs (24)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\InboundNatRulesRestOperations.cs (36)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179return message.Response;
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
208switch (message.Response.Status)
213return message.Response;
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
268switch (message.Response.Status)
273using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
275return Response.FromValue(value, message.Response);
278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
311using var document = JsonDocument.Parse(message.Response.ContentStream);
313return Response.FromValue(value, message.Response);
316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
373switch (message.Response.Status)
377return message.Response;
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
411switch (message.Response.Status)
415return message.Response;
417throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IpAllocationsRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
440switch (message.Response.Status)
445using var document = JsonDocument.Parse(message.Response.ContentStream);
447return Response.FromValue(value, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
552switch (message.Response.Status)
557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
559return Response.FromValue(value, message.Response);
562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
584using var document = JsonDocument.Parse(message.Response.ContentStream);
586return Response.FromValue(value, message.Response);
589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
624switch (message.Response.Status)
629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
631return Response.FromValue(value, message.Response);
634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IpGroupsRestOperations.cs (60)
88switch (message.Response.Status)
93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
95return Response.FromValue(value, message.Response);
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
121switch (message.Response.Status)
126using var document = JsonDocument.Parse(message.Response.ContentStream);
128return Response.FromValue(value, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
270switch (message.Response.Status)
275using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
277return Response.FromValue(value, message.Response);
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
358switch (message.Response.Status)
363return message.Response;
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392return message.Response;
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429switch (message.Response.Status)
434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
436return Response.FromValue(value, message.Response);
439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
456switch (message.Response.Status)
461using var document = JsonDocument.Parse(message.Response.ContentStream);
463return Response.FromValue(value, message.Response);
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589switch (message.Response.Status)
594using var document = JsonDocument.Parse(message.Response.ContentStream);
596return Response.FromValue(value, message.Response);
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
629switch (message.Response.Status)
634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
636return Response.FromValue(value, message.Response);
639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LoadBalancerBackendAddressPoolsRestOperations.cs (36)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
375return message.Response;
377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
404switch (message.Response.Status)
409return message.Response;
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LoadBalancerFrontendIPConfigurationsRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LoadBalancerLoadBalancingRulesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LoadBalancerOutboundRulesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LoadBalancerProbesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LoadBalancersRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
440switch (message.Response.Status)
445using var document = JsonDocument.Parse(message.Response.ContentStream);
447return Response.FromValue(value, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
552switch (message.Response.Status)
557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
559return Response.FromValue(value, message.Response);
562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
584using var document = JsonDocument.Parse(message.Response.ContentStream);
586return Response.FromValue(value, message.Response);
589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
624switch (message.Response.Status)
629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
631return Response.FromValue(value, message.Response);
634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LocalNetworkGatewaysRestOperations.cs (44)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
172switch (message.Response.Status)
177using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
179return Response.FromValue(value, message.Response);
182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
204switch (message.Response.Status)
209using var document = JsonDocument.Parse(message.Response.ContentStream);
211return Response.FromValue(value, message.Response);
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
255switch (message.Response.Status)
260return message.Response;
262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
284switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
430return Response.FromValue(value, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
502return Response.FromValue(value, message.Response);
505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
527switch (message.Response.Status)
532using var document = JsonDocument.Parse(message.Response.ContentStream);
534return Response.FromValue(value, message.Response);
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NatGatewaysRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
263return message.Response;
265throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
356return Response.FromValue(value, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
391using var document = JsonDocument.Parse(message.Response.ContentStream);
393return Response.FromValue(value, message.Response);
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
429return Response.FromValue(value, message.Response);
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
494return Response.FromValue(value, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
554switch (message.Response.Status)
559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
561return Response.FromValue(value, message.Response);
564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
581switch (message.Response.Status)
586using var document = JsonDocument.Parse(message.Response.ContentStream);
588return Response.FromValue(value, message.Response);
591throw _clientDiagnostics.CreateRequestFailedException(message.Response);
626switch (message.Response.Status)
631using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
633return Response.FromValue(value, message.Response);
636throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
658switch (message.Response.Status)
663using var document = JsonDocument.Parse(message.Response.ContentStream);
665return Response.FromValue(value, message.Response);
668throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NetworkInterfaceIPConfigurationsRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NetworkInterfacesRestOperations.cs (136)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
440switch (message.Response.Status)
445using var document = JsonDocument.Parse(message.Response.ContentStream);
447return Response.FromValue(value, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
564switch (message.Response.Status)
568return message.Response;
570throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
592switch (message.Response.Status)
596return message.Response;
598throw _clientDiagnostics.CreateRequestFailedException(message.Response);
640switch (message.Response.Status)
644return message.Response;
646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
668switch (message.Response.Status)
672return message.Response;
674throw _clientDiagnostics.CreateRequestFailedException(message.Response);
723switch (message.Response.Status)
728using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
730return Response.FromValue(value, message.Response);
733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
760switch (message.Response.Status)
765using var document = JsonDocument.Parse(message.Response.ContentStream);
767return Response.FromValue(value, message.Response);
770throw _clientDiagnostics.CreateRequestFailedException(message.Response);
812switch (message.Response.Status)
817using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
819return Response.FromValue(value, message.Response);
822throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
844switch (message.Response.Status)
849using var document = JsonDocument.Parse(message.Response.ContentStream);
851return Response.FromValue(value, message.Response);
854throw _clientDiagnostics.CreateRequestFailedException(message.Response);
914switch (message.Response.Status)
919using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
921return Response.FromValue(value, message.Response);
924throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
957switch (message.Response.Status)
962using var document = JsonDocument.Parse(message.Response.ContentStream);
964return Response.FromValue(value, message.Response);
967throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1028switch (message.Response.Status)
1033using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1035return Response.FromValue(value, message.Response);
1038throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1071switch (message.Response.Status)
1076using var document = JsonDocument.Parse(message.Response.ContentStream);
1078return Response.FromValue(value, message.Response);
1081throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1148switch (message.Response.Status)
1153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1155return Response.FromValue(value, message.Response);
1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1196switch (message.Response.Status)
1201using var document = JsonDocument.Parse(message.Response.ContentStream);
1203return Response.FromValue(value, message.Response);
1206throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1236switch (message.Response.Status)
1241using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1243return Response.FromValue(value, message.Response);
1246throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1263switch (message.Response.Status)
1268using var document = JsonDocument.Parse(message.Response.ContentStream);
1270return Response.FromValue(value, message.Response);
1273throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1308switch (message.Response.Status)
1313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1315return Response.FromValue(value, message.Response);
1318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1340switch (message.Response.Status)
1345using var document = JsonDocument.Parse(message.Response.ContentStream);
1347return Response.FromValue(value, message.Response);
1350throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1395switch (message.Response.Status)
1400using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1402return Response.FromValue(value, message.Response);
1405throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1437switch (message.Response.Status)
1442using var document = JsonDocument.Parse(message.Response.ContentStream);
1444return Response.FromValue(value, message.Response);
1447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1487switch (message.Response.Status)
1492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1494return Response.FromValue(value, message.Response);
1497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1524switch (message.Response.Status)
1529using var document = JsonDocument.Parse(message.Response.ContentStream);
1531return Response.FromValue(value, message.Response);
1534throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1585switch (message.Response.Status)
1590using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1592return Response.FromValue(value, message.Response);
1595throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1633switch (message.Response.Status)
1638using var document = JsonDocument.Parse(message.Response.ContentStream);
1640return Response.FromValue(value, message.Response);
1643throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NetworkInterfaceTapConfigurationsRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NetworkManagementRestOperations.cs (84)
93switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
130return message.Response;
132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
183switch (message.Response.Status)
187return message.Response;
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
220return message.Response;
222throw _clientDiagnostics.CreateRequestFailedException(message.Response);
273switch (message.Response.Status)
278using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
280return Response.FromValue(value, message.Response);
283throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
310switch (message.Response.Status)
315using var document = JsonDocument.Parse(message.Response.ContentStream);
317return Response.FromValue(value, message.Response);
320throw _clientDiagnostics.CreateRequestFailedException(message.Response);
362switch (message.Response.Status)
366return message.Response;
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
394return message.Response;
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
447switch (message.Response.Status)
452using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
454return Response.FromValue(value, message.Response);
457throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
484switch (message.Response.Status)
489using var document = JsonDocument.Parse(message.Response.ContentStream);
491return Response.FromValue(value, message.Response);
494throw _clientDiagnostics.CreateRequestFailedException(message.Response);
535switch (message.Response.Status)
540using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
542return Response.FromValue(value, message.Response);
545throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
567switch (message.Response.Status)
572using var document = JsonDocument.Parse(message.Response.ContentStream);
574return Response.FromValue(value, message.Response);
577throw _clientDiagnostics.CreateRequestFailedException(message.Response);
619switch (message.Response.Status)
624using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
626return Response.FromValue(value, message.Response);
629throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
651switch (message.Response.Status)
656using var document = JsonDocument.Parse(message.Response.ContentStream);
658return Response.FromValue(value, message.Response);
661throw _clientDiagnostics.CreateRequestFailedException(message.Response);
712switch (message.Response.Status)
716return message.Response;
718throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
745switch (message.Response.Status)
749return message.Response;
751throw _clientDiagnostics.CreateRequestFailedException(message.Response);
796switch (message.Response.Status)
799return message.Response;
801throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
833switch (message.Response.Status)
836return message.Response;
838throw _clientDiagnostics.CreateRequestFailedException(message.Response);
883switch (message.Response.Status)
888using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
890return Response.FromValue(value, message.Response);
893throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
925switch (message.Response.Status)
930using var document = JsonDocument.Parse(message.Response.ContentStream);
932return Response.FromValue(value, message.Response);
935throw _clientDiagnostics.CreateRequestFailedException(message.Response);
975switch (message.Response.Status)
978return message.Response;
980throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1007switch (message.Response.Status)
1010return message.Response;
1012throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1057switch (message.Response.Status)
1062using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1064return Response.FromValue(value, message.Response);
1067throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1099switch (message.Response.Status)
1104using var document = JsonDocument.Parse(message.Response.ContentStream);
1106return Response.FromValue(value, message.Response);
1109throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NetworkProfilesRestOperations.cs (62)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
264using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
266return Response.FromValue(value, message.Response);
269throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
302using var document = JsonDocument.Parse(message.Response.ContentStream);
304return Response.FromValue(value, message.Response);
307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
357switch (message.Response.Status)
362using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
364return Response.FromValue(value, message.Response);
367throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
394switch (message.Response.Status)
399using var document = JsonDocument.Parse(message.Response.ContentStream);
401return Response.FromValue(value, message.Response);
404throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
502return Response.FromValue(value, message.Response);
505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
522switch (message.Response.Status)
527using var document = JsonDocument.Parse(message.Response.ContentStream);
529return Response.FromValue(value, message.Response);
532throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
567using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
569return Response.FromValue(value, message.Response);
572throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589switch (message.Response.Status)
594using var document = JsonDocument.Parse(message.Response.ContentStream);
596return Response.FromValue(value, message.Response);
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
634switch (message.Response.Status)
639using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
641return Response.FromValue(value, message.Response);
644throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
666switch (message.Response.Status)
671using var document = JsonDocument.Parse(message.Response.ContentStream);
673return Response.FromValue(value, message.Response);
676throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NetworkSecurityGroupsRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
440switch (message.Response.Status)
445using var document = JsonDocument.Parse(message.Response.ContentStream);
447return Response.FromValue(value, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
552switch (message.Response.Status)
557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
559return Response.FromValue(value, message.Response);
562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
584using var document = JsonDocument.Parse(message.Response.ContentStream);
586return Response.FromValue(value, message.Response);
589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
624switch (message.Response.Status)
629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
631return Response.FromValue(value, message.Response);
634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NetworkVirtualAppliancesRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
265return Response.FromValue(value, message.Response);
268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
295switch (message.Response.Status)
300using var document = JsonDocument.Parse(message.Response.ContentStream);
302return Response.FromValue(value, message.Response);
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
359return message.Response;
361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
388switch (message.Response.Status)
392return message.Response;
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429switch (message.Response.Status)
434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
436return Response.FromValue(value, message.Response);
439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
456switch (message.Response.Status)
461using var document = JsonDocument.Parse(message.Response.ContentStream);
463return Response.FromValue(value, message.Response);
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589switch (message.Response.Status)
594using var document = JsonDocument.Parse(message.Response.ContentStream);
596return Response.FromValue(value, message.Response);
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
629switch (message.Response.Status)
634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
636return Response.FromValue(value, message.Response);
639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NetworkWatchersRestOperations.cs (120)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
269return message.Response;
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
356return Response.FromValue(value, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
391using var document = JsonDocument.Parse(message.Response.ContentStream);
393return Response.FromValue(value, message.Response);
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
431switch (message.Response.Status)
436using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
438return Response.FromValue(value, message.Response);
441throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
458switch (message.Response.Status)
463using var document = JsonDocument.Parse(message.Response.ContentStream);
465return Response.FromValue(value, message.Response);
468throw _clientDiagnostics.CreateRequestFailedException(message.Response);
494switch (message.Response.Status)
499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
501return Response.FromValue(value, message.Response);
504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
575switch (message.Response.Status)
580using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
582return Response.FromValue(value, message.Response);
585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
612switch (message.Response.Status)
617using var document = JsonDocument.Parse(message.Response.ContentStream);
619return Response.FromValue(value, message.Response);
622throw _clientDiagnostics.CreateRequestFailedException(message.Response);
673switch (message.Response.Status)
677return message.Response;
679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
706switch (message.Response.Status)
710return message.Response;
712throw _clientDiagnostics.CreateRequestFailedException(message.Response);
763switch (message.Response.Status)
767return message.Response;
769throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
796switch (message.Response.Status)
800return message.Response;
802throw _clientDiagnostics.CreateRequestFailedException(message.Response);
853switch (message.Response.Status)
857return message.Response;
859throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
886switch (message.Response.Status)
890return message.Response;
892throw _clientDiagnostics.CreateRequestFailedException(message.Response);
943switch (message.Response.Status)
947return message.Response;
949throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
976switch (message.Response.Status)
980return message.Response;
982throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1033switch (message.Response.Status)
1037return message.Response;
1039throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1066switch (message.Response.Status)
1070return message.Response;
1072throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1123switch (message.Response.Status)
1127return message.Response;
1129throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1156switch (message.Response.Status)
1160return message.Response;
1162throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1213switch (message.Response.Status)
1217return message.Response;
1219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1246switch (message.Response.Status)
1250return message.Response;
1252throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1303switch (message.Response.Status)
1307return message.Response;
1309throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1336switch (message.Response.Status)
1340return message.Response;
1342throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1393switch (message.Response.Status)
1397return message.Response;
1399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1426switch (message.Response.Status)
1430return message.Response;
1432throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1483switch (message.Response.Status)
1487return message.Response;
1489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1516switch (message.Response.Status)
1520return message.Response;
1522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1573switch (message.Response.Status)
1577return message.Response;
1579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1606switch (message.Response.Status)
1610return message.Response;
1612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\P2SVpnGatewaysRestOperations.cs (84)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
179return message.Response;
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
208switch (message.Response.Status)
212return message.Response;
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
306using var document = JsonDocument.Parse(message.Response.ContentStream);
308return Response.FromValue(value, message.Response);
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
352switch (message.Response.Status)
357return message.Response;
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
381switch (message.Response.Status)
386return message.Response;
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
430return Response.FromValue(value, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
567switch (message.Response.Status)
571return message.Response;
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
648switch (message.Response.Status)
652return message.Response;
654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
676switch (message.Response.Status)
680return message.Response;
682throw _clientDiagnostics.CreateRequestFailedException(message.Response);
733switch (message.Response.Status)
737return message.Response;
739throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
766switch (message.Response.Status)
770return message.Response;
772throw _clientDiagnostics.CreateRequestFailedException(message.Response);
823switch (message.Response.Status)
827return message.Response;
829throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
856switch (message.Response.Status)
860return message.Response;
862throw _clientDiagnostics.CreateRequestFailedException(message.Response);
897switch (message.Response.Status)
902using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
904return Response.FromValue(value, message.Response);
907throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
929switch (message.Response.Status)
934using var document = JsonDocument.Parse(message.Response.ContentStream);
936return Response.FromValue(value, message.Response);
939throw _clientDiagnostics.CreateRequestFailedException(message.Response);
969switch (message.Response.Status)
974using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
976return Response.FromValue(value, message.Response);
979throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
996switch (message.Response.Status)
1001using var document = JsonDocument.Parse(message.Response.ContentStream);
1003return Response.FromValue(value, message.Response);
1006throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PeerExpressRouteCircuitConnectionsRestOperations.cs (24)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
198switch (message.Response.Status)
203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
205return Response.FromValue(value, message.Response);
208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
290switch (message.Response.Status)
295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
297return Response.FromValue(value, message.Response);
300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
337using var document = JsonDocument.Parse(message.Response.ContentStream);
339return Response.FromValue(value, message.Response);
342throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateDnsZoneGroupsRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateEndpointsRestOperations.cs (52)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
332switch (message.Response.Status)
337using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
339return Response.FromValue(value, message.Response);
342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
395switch (message.Response.Status)
400using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
402return Response.FromValue(value, message.Response);
405throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
415switch (message.Response.Status)
420using var document = JsonDocument.Parse(message.Response.ContentStream);
422return Response.FromValue(value, message.Response);
425throw _clientDiagnostics.CreateRequestFailedException(message.Response);
460switch (message.Response.Status)
465using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
467return Response.FromValue(value, message.Response);
470throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
492switch (message.Response.Status)
497using var document = JsonDocument.Parse(message.Response.ContentStream);
499return Response.FromValue(value, message.Response);
502throw _clientDiagnostics.CreateRequestFailedException(message.Response);
532switch (message.Response.Status)
537using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
539return Response.FromValue(value, message.Response);
542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateLinkServicesRestOperations.cs (134)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
332switch (message.Response.Status)
337using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
339return Response.FromValue(value, message.Response);
342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
395switch (message.Response.Status)
400using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
402return Response.FromValue(value, message.Response);
405throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
415switch (message.Response.Status)
420using var document = JsonDocument.Parse(message.Response.ContentStream);
422return Response.FromValue(value, message.Response);
425throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
483using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
485return Response.FromValue(value, message.Response);
488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
516switch (message.Response.Status)
521using var document = JsonDocument.Parse(message.Response.ContentStream);
523return Response.FromValue(value, message.Response);
526throw _clientDiagnostics.CreateRequestFailedException(message.Response);
583switch (message.Response.Status)
588using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
590return Response.FromValue(value, message.Response);
593throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
625switch (message.Response.Status)
630using var document = JsonDocument.Parse(message.Response.ContentStream);
632return Response.FromValue(value, message.Response);
635throw _clientDiagnostics.CreateRequestFailedException(message.Response);
683switch (message.Response.Status)
688return message.Response;
690throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
717switch (message.Response.Status)
722return message.Response;
724throw _clientDiagnostics.CreateRequestFailedException(message.Response);
766switch (message.Response.Status)
771using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
773return Response.FromValue(value, message.Response);
776throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
798switch (message.Response.Status)
803using var document = JsonDocument.Parse(message.Response.ContentStream);
805return Response.FromValue(value, message.Response);
808throw _clientDiagnostics.CreateRequestFailedException(message.Response);
852switch (message.Response.Status)
856return message.Response;
858throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
880switch (message.Response.Status)
884return message.Response;
886throw _clientDiagnostics.CreateRequestFailedException(message.Response);
937switch (message.Response.Status)
941return message.Response;
943throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
970switch (message.Response.Status)
974return message.Response;
976throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1011switch (message.Response.Status)
1016using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1018return Response.FromValue(value, message.Response);
1021throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1038switch (message.Response.Status)
1043using var document = JsonDocument.Parse(message.Response.ContentStream);
1045return Response.FromValue(value, message.Response);
1048throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1090switch (message.Response.Status)
1095using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1097return Response.FromValue(value, message.Response);
1100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1122switch (message.Response.Status)
1127using var document = JsonDocument.Parse(message.Response.ContentStream);
1129return Response.FromValue(value, message.Response);
1132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1167switch (message.Response.Status)
1172using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1174return Response.FromValue(value, message.Response);
1177throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1199switch (message.Response.Status)
1204using var document = JsonDocument.Parse(message.Response.ContentStream);
1206return Response.FromValue(value, message.Response);
1209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1239switch (message.Response.Status)
1244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1246return Response.FromValue(value, message.Response);
1249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1266switch (message.Response.Status)
1271using var document = JsonDocument.Parse(message.Response.ContentStream);
1273return Response.FromValue(value, message.Response);
1276throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1316switch (message.Response.Status)
1321using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1323return Response.FromValue(value, message.Response);
1326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1353switch (message.Response.Status)
1358using var document = JsonDocument.Parse(message.Response.ContentStream);
1360return Response.FromValue(value, message.Response);
1363throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1398switch (message.Response.Status)
1403using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1405return Response.FromValue(value, message.Response);
1408throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1430switch (message.Response.Status)
1435using var document = JsonDocument.Parse(message.Response.ContentStream);
1437return Response.FromValue(value, message.Response);
1440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1480switch (message.Response.Status)
1485using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1487return Response.FromValue(value, message.Response);
1490throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1517switch (message.Response.Status)
1522using var document = JsonDocument.Parse(message.Response.ContentStream);
1524return Response.FromValue(value, message.Response);
1527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PublicIPAddressesRestOperations.cs (100)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
440switch (message.Response.Status)
445using var document = JsonDocument.Parse(message.Response.ContentStream);
447return Response.FromValue(value, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
564switch (message.Response.Status)
569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
571return Response.FromValue(value, message.Response);
574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
596switch (message.Response.Status)
601using var document = JsonDocument.Parse(message.Response.ContentStream);
603return Response.FromValue(value, message.Response);
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
669switch (message.Response.Status)
674using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
676return Response.FromValue(value, message.Response);
679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
716switch (message.Response.Status)
721using var document = JsonDocument.Parse(message.Response.ContentStream);
723return Response.FromValue(value, message.Response);
726throw _clientDiagnostics.CreateRequestFailedException(message.Response);
800switch (message.Response.Status)
805using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
807return Response.FromValue(value, message.Response);
810throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
853switch (message.Response.Status)
858using var document = JsonDocument.Parse(message.Response.ContentStream);
860return Response.FromValue(value, message.Response);
863throw _clientDiagnostics.CreateRequestFailedException(message.Response);
893switch (message.Response.Status)
898using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
900return Response.FromValue(value, message.Response);
903throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
920switch (message.Response.Status)
925using var document = JsonDocument.Parse(message.Response.ContentStream);
927return Response.FromValue(value, message.Response);
930throw _clientDiagnostics.CreateRequestFailedException(message.Response);
965switch (message.Response.Status)
970using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
972return Response.FromValue(value, message.Response);
975throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
997switch (message.Response.Status)
1002using var document = JsonDocument.Parse(message.Response.ContentStream);
1004return Response.FromValue(value, message.Response);
1007throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1047switch (message.Response.Status)
1052using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1054return Response.FromValue(value, message.Response);
1057throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1084switch (message.Response.Status)
1089using var document = JsonDocument.Parse(message.Response.ContentStream);
1091return Response.FromValue(value, message.Response);
1094throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1149switch (message.Response.Status)
1154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1156return Response.FromValue(value, message.Response);
1159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1201switch (message.Response.Status)
1206using var document = JsonDocument.Parse(message.Response.ContentStream);
1208return Response.FromValue(value, message.Response);
1211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PublicIPPrefixesRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
440switch (message.Response.Status)
445using var document = JsonDocument.Parse(message.Response.ContentStream);
447return Response.FromValue(value, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
552switch (message.Response.Status)
557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
559return Response.FromValue(value, message.Response);
562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
584using var document = JsonDocument.Parse(message.Response.ContentStream);
586return Response.FromValue(value, message.Response);
589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
624switch (message.Response.Status)
629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
631return Response.FromValue(value, message.Response);
634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RouteFilterRulesRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RouteFiltersRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429switch (message.Response.Status)
434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
436return Response.FromValue(value, message.Response);
439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
456switch (message.Response.Status)
461using var document = JsonDocument.Parse(message.Response.ContentStream);
463return Response.FromValue(value, message.Response);
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589switch (message.Response.Status)
594using var document = JsonDocument.Parse(message.Response.ContentStream);
596return Response.FromValue(value, message.Response);
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
629switch (message.Response.Status)
634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
636return Response.FromValue(value, message.Response);
639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoutesRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RouteTablesRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429switch (message.Response.Status)
434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
436return Response.FromValue(value, message.Response);
439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
456switch (message.Response.Status)
461using var document = JsonDocument.Parse(message.Response.ContentStream);
463return Response.FromValue(value, message.Response);
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589switch (message.Response.Status)
594using var document = JsonDocument.Parse(message.Response.ContentStream);
596return Response.FromValue(value, message.Response);
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
629switch (message.Response.Status)
634using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
636return Response.FromValue(value, message.Response);
639throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SecurityPartnerProvidersRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
160switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
197using var document = JsonDocument.Parse(message.Response.ContentStream);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
256return message.Response;
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
430return Response.FromValue(value, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
551switch (message.Response.Status)
556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
558return Response.FromValue(value, message.Response);
561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
583switch (message.Response.Status)
588using var document = JsonDocument.Parse(message.Response.ContentStream);
590return Response.FromValue(value, message.Response);
593throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623switch (message.Response.Status)
628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
630return Response.FromValue(value, message.Response);
633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SecurityRulesRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceEndpointPoliciesRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
440switch (message.Response.Status)
445using var document = JsonDocument.Parse(message.Response.ContentStream);
447return Response.FromValue(value, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
552switch (message.Response.Status)
557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
559return Response.FromValue(value, message.Response);
562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
584using var document = JsonDocument.Parse(message.Response.ContentStream);
586return Response.FromValue(value, message.Response);
589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
624switch (message.Response.Status)
629using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
631return Response.FromValue(value, message.Response);
634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceEndpointPolicyDefinitionsRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SubnetsRestOperations.cs (48)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
184switch (message.Response.Status)
189using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
191return Response.FromValue(value, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
222switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
289switch (message.Response.Status)
293return message.Response;
295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
327switch (message.Response.Status)
331return message.Response;
333throw _clientDiagnostics.CreateRequestFailedException(message.Response);
391switch (message.Response.Status)
395return message.Response;
397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
429switch (message.Response.Status)
433return message.Response;
435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
493switch (message.Response.Status)
497return message.Response;
499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
531switch (message.Response.Status)
535return message.Response;
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
579switch (message.Response.Status)
584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
586return Response.FromValue(value, message.Response);
589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
611switch (message.Response.Status)
616using var document = JsonDocument.Parse(message.Response.ContentStream);
618return Response.FromValue(value, message.Response);
621throw _clientDiagnostics.CreateRequestFailedException(message.Response);
661switch (message.Response.Status)
666using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
668return Response.FromValue(value, message.Response);
671throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
698switch (message.Response.Status)
703using var document = JsonDocument.Parse(message.Response.ContentStream);
705return Response.FromValue(value, message.Response);
708throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualHubRouteTableV2SRestOperations.cs (36)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
198return message.Response;
200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
236return message.Response;
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
291return message.Response;
293throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
320switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualHubsRestOperations.cs (60)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
179return message.Response;
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
208switch (message.Response.Status)
212return message.Response;
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
306using var document = JsonDocument.Parse(message.Response.ContentStream);
308return Response.FromValue(value, message.Response);
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
352switch (message.Response.Status)
357return message.Response;
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
381switch (message.Response.Status)
386return message.Response;
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
430return Response.FromValue(value, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
551switch (message.Response.Status)
556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
558return Response.FromValue(value, message.Response);
561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
583switch (message.Response.Status)
588using var document = JsonDocument.Parse(message.Response.ContentStream);
590return Response.FromValue(value, message.Response);
593throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623switch (message.Response.Status)
628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
630return Response.FromValue(value, message.Response);
633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualNetworkGatewayConnectionsRestOperations.cs (74)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
172switch (message.Response.Status)
177using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
179return Response.FromValue(value, message.Response);
182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
204switch (message.Response.Status)
209using var document = JsonDocument.Parse(message.Response.ContentStream);
211return Response.FromValue(value, message.Response);
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
255switch (message.Response.Status)
260return message.Response;
262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
284switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
345return message.Response;
347throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
374switch (message.Response.Status)
378return message.Response;
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
431switch (message.Response.Status)
435return message.Response;
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
464switch (message.Response.Status)
468return message.Response;
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
512switch (message.Response.Status)
517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
519return Response.FromValue(value, message.Response);
522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
544switch (message.Response.Status)
549using var document = JsonDocument.Parse(message.Response.ContentStream);
551return Response.FromValue(value, message.Response);
554throw _clientDiagnostics.CreateRequestFailedException(message.Response);
589switch (message.Response.Status)
594using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
596return Response.FromValue(value, message.Response);
599throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
616switch (message.Response.Status)
621using var document = JsonDocument.Parse(message.Response.ContentStream);
623return Response.FromValue(value, message.Response);
626throw _clientDiagnostics.CreateRequestFailedException(message.Response);
677switch (message.Response.Status)
681return message.Response;
683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
710switch (message.Response.Status)
714return message.Response;
716throw _clientDiagnostics.CreateRequestFailedException(message.Response);
766switch (message.Response.Status)
770return message.Response;
772throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
795switch (message.Response.Status)
799return message.Response;
801throw _clientDiagnostics.CreateRequestFailedException(message.Response);
852switch (message.Response.Status)
856return message.Response;
858throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
885switch (message.Response.Status)
889return message.Response;
891throw _clientDiagnostics.CreateRequestFailedException(message.Response);
926switch (message.Response.Status)
931using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
933return Response.FromValue(value, message.Response);
936throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
958switch (message.Response.Status)
963using var document = JsonDocument.Parse(message.Response.ContentStream);
965return Response.FromValue(value, message.Response);
968throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualNetworkGatewaysRestOperations.cs (158)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
172switch (message.Response.Status)
177using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
179return Response.FromValue(value, message.Response);
182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
204switch (message.Response.Status)
209using var document = JsonDocument.Parse(message.Response.ContentStream);
211return Response.FromValue(value, message.Response);
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
255switch (message.Response.Status)
260return message.Response;
262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
284switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
345return message.Response;
347throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
374switch (message.Response.Status)
378return message.Response;
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
420using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
422return Response.FromValue(value, message.Response);
425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
494switch (message.Response.Status)
499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
501return Response.FromValue(value, message.Response);
504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
583switch (message.Response.Status)
587return message.Response;
589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
612switch (message.Response.Status)
616return message.Response;
618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
660switch (message.Response.Status)
664return message.Response;
666throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
745switch (message.Response.Status)
749return message.Response;
751throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
778switch (message.Response.Status)
782return message.Response;
784throw _clientDiagnostics.CreateRequestFailedException(message.Response);
835switch (message.Response.Status)
839return message.Response;
841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
872return message.Response;
874throw _clientDiagnostics.CreateRequestFailedException(message.Response);
916switch (message.Response.Status)
920return message.Response;
922throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
944switch (message.Response.Status)
948return message.Response;
950throw _clientDiagnostics.CreateRequestFailedException(message.Response);
997switch (message.Response.Status)
1001return message.Response;
1003throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1026switch (message.Response.Status)
1030return message.Response;
1032throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1074switch (message.Response.Status)
1079using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1081return Response.FromValue(value, message.Response);
1084throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1106switch (message.Response.Status)
1111using var document = JsonDocument.Parse(message.Response.ContentStream);
1113return Response.FromValue(value, message.Response);
1116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1158switch (message.Response.Status)
1162return message.Response;
1164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1186switch (message.Response.Status)
1190return message.Response;
1192throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1240switch (message.Response.Status)
1244return message.Response;
1246throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1273switch (message.Response.Status)
1277return message.Response;
1279throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1330switch (message.Response.Status)
1334return message.Response;
1336throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1363switch (message.Response.Status)
1367return message.Response;
1369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1411switch (message.Response.Status)
1414return message.Response;
1416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1438switch (message.Response.Status)
1441return message.Response;
1443throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1494switch (message.Response.Status)
1499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1501return Response.FromValue(value, message.Response);
1504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1531switch (message.Response.Status)
1536using var document = JsonDocument.Parse(message.Response.ContentStream);
1538return Response.FromValue(value, message.Response);
1541throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1591switch (message.Response.Status)
1595return message.Response;
1597throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1620switch (message.Response.Status)
1624return message.Response;
1626throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1677switch (message.Response.Status)
1681return message.Response;
1683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1710switch (message.Response.Status)
1714return message.Response;
1716throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1758switch (message.Response.Status)
1762return message.Response;
1764throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1786switch (message.Response.Status)
1790return message.Response;
1792throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1843switch (message.Response.Status)
1847return message.Response;
1849throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1876switch (message.Response.Status)
1880return message.Response;
1882throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1917switch (message.Response.Status)
1922using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1924return Response.FromValue(value, message.Response);
1927throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1949switch (message.Response.Status)
1954using var document = JsonDocument.Parse(message.Response.ContentStream);
1956return Response.FromValue(value, message.Response);
1959throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1999switch (message.Response.Status)
2004using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2006return Response.FromValue(value, message.Response);
2009throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2036switch (message.Response.Status)
2041using var document = JsonDocument.Parse(message.Response.ContentStream);
2043return Response.FromValue(value, message.Response);
2046throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualNetworkPeeringsRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualNetworksRestOperations.cs (84)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
440switch (message.Response.Status)
445using var document = JsonDocument.Parse(message.Response.ContentStream);
447return Response.FromValue(value, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
570switch (message.Response.Status)
575using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
577return Response.FromValue(value, message.Response);
580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
612using var document = JsonDocument.Parse(message.Response.ContentStream);
614return Response.FromValue(value, message.Response);
617throw _clientDiagnostics.CreateRequestFailedException(message.Response);
659switch (message.Response.Status)
664using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
666return Response.FromValue(value, message.Response);
669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
691switch (message.Response.Status)
696using var document = JsonDocument.Parse(message.Response.ContentStream);
698return Response.FromValue(value, message.Response);
701throw _clientDiagnostics.CreateRequestFailedException(message.Response);
731switch (message.Response.Status)
736using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
738return Response.FromValue(value, message.Response);
741throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
758switch (message.Response.Status)
763using var document = JsonDocument.Parse(message.Response.ContentStream);
765return Response.FromValue(value, message.Response);
768throw _clientDiagnostics.CreateRequestFailedException(message.Response);
803switch (message.Response.Status)
808using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
810return Response.FromValue(value, message.Response);
813throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
835switch (message.Response.Status)
840using var document = JsonDocument.Parse(message.Response.ContentStream);
842return Response.FromValue(value, message.Response);
845throw _clientDiagnostics.CreateRequestFailedException(message.Response);
885switch (message.Response.Status)
890using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
892return Response.FromValue(value, message.Response);
895throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
922switch (message.Response.Status)
927using var document = JsonDocument.Parse(message.Response.ContentStream);
929return Response.FromValue(value, message.Response);
932throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualNetworkTapsRestOperations.cs (60)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
160switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
197using var document = JsonDocument.Parse(message.Response.ContentStream);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
256return message.Response;
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
414switch (message.Response.Status)
419using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
421return Response.FromValue(value, message.Response);
424throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
434switch (message.Response.Status)
439using var document = JsonDocument.Parse(message.Response.ContentStream);
441return Response.FromValue(value, message.Response);
444throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
486return Response.FromValue(value, message.Response);
489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
546switch (message.Response.Status)
551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
553return Response.FromValue(value, message.Response);
556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
578using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
618switch (message.Response.Status)
623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
625return Response.FromValue(value, message.Response);
628throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualRouterPeeringsRestOperations.cs (36)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualRoutersRestOperations.cs (52)
83switch (message.Response.Status)
88return message.Response;
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
203using var document = JsonDocument.Parse(message.Response.ContentStream);
205return Response.FromValue(value, message.Response);
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258switch (message.Response.Status)
262return message.Response;
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
291switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
332switch (message.Response.Status)
337using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
339return Response.FromValue(value, message.Response);
342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
395switch (message.Response.Status)
400using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
402return Response.FromValue(value, message.Response);
405throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
415switch (message.Response.Status)
420using var document = JsonDocument.Parse(message.Response.ContentStream);
422return Response.FromValue(value, message.Response);
425throw _clientDiagnostics.CreateRequestFailedException(message.Response);
460switch (message.Response.Status)
465using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
467return Response.FromValue(value, message.Response);
470throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
492switch (message.Response.Status)
497using var document = JsonDocument.Parse(message.Response.ContentStream);
499return Response.FromValue(value, message.Response);
502throw _clientDiagnostics.CreateRequestFailedException(message.Response);
532switch (message.Response.Status)
537using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
539return Response.FromValue(value, message.Response);
542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualWansRestOperations.cs (60)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
179return message.Response;
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
208switch (message.Response.Status)
212return message.Response;
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
306using var document = JsonDocument.Parse(message.Response.ContentStream);
308return Response.FromValue(value, message.Response);
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
352switch (message.Response.Status)
357return message.Response;
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
381switch (message.Response.Status)
386return message.Response;
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
430return Response.FromValue(value, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
551switch (message.Response.Status)
556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
558return Response.FromValue(value, message.Response);
561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
583switch (message.Response.Status)
588using var document = JsonDocument.Parse(message.Response.ContentStream);
590return Response.FromValue(value, message.Response);
593throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623switch (message.Response.Status)
628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
630return Response.FromValue(value, message.Response);
633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VpnConnectionsRestOperations.cs (36)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
198return message.Response;
200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
236return message.Response;
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
291return message.Response;
293throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
320switch (message.Response.Status)
325return message.Response;
327throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
488switch (message.Response.Status)
493using var document = JsonDocument.Parse(message.Response.ContentStream);
495return Response.FromValue(value, message.Response);
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VpnGatewaysRestOperations.cs (66)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
179return message.Response;
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
208switch (message.Response.Status)
212return message.Response;
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
306using var document = JsonDocument.Parse(message.Response.ContentStream);
308return Response.FromValue(value, message.Response);
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
352switch (message.Response.Status)
357return message.Response;
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
381switch (message.Response.Status)
386return message.Response;
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
434return message.Response;
436throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
458switch (message.Response.Status)
462return message.Response;
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
499switch (message.Response.Status)
504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
506return Response.FromValue(value, message.Response);
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
567using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
569return Response.FromValue(value, message.Response);
572throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
582switch (message.Response.Status)
587using var document = JsonDocument.Parse(message.Response.ContentStream);
589return Response.FromValue(value, message.Response);
592throw _clientDiagnostics.CreateRequestFailedException(message.Response);
627switch (message.Response.Status)
632using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
634return Response.FromValue(value, message.Response);
637throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
659switch (message.Response.Status)
664using var document = JsonDocument.Parse(message.Response.ContentStream);
666return Response.FromValue(value, message.Response);
669throw _clientDiagnostics.CreateRequestFailedException(message.Response);
699switch (message.Response.Status)
704using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
706return Response.FromValue(value, message.Response);
709throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
726switch (message.Response.Status)
731using var document = JsonDocument.Parse(message.Response.ContentStream);
733return Response.FromValue(value, message.Response);
736throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VpnServerConfigurationsRestOperations.cs (60)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
179return message.Response;
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
208switch (message.Response.Status)
212return message.Response;
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
306using var document = JsonDocument.Parse(message.Response.ContentStream);
308return Response.FromValue(value, message.Response);
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
352switch (message.Response.Status)
357return message.Response;
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
381switch (message.Response.Status)
386return message.Response;
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
430return Response.FromValue(value, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
551switch (message.Response.Status)
556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
558return Response.FromValue(value, message.Response);
561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
583switch (message.Response.Status)
588using var document = JsonDocument.Parse(message.Response.ContentStream);
590return Response.FromValue(value, message.Response);
593throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623switch (message.Response.Status)
628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
630return Response.FromValue(value, message.Response);
633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VpnSiteLinksRestOperations.cs (24)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VpnSitesRestOperations.cs (60)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
179return message.Response;
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
208switch (message.Response.Status)
212return message.Response;
214throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
306using var document = JsonDocument.Parse(message.Response.ContentStream);
308return Response.FromValue(value, message.Response);
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
352switch (message.Response.Status)
357return message.Response;
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
381switch (message.Response.Status)
386return message.Response;
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
430return Response.FromValue(value, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
551switch (message.Response.Status)
556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
558return Response.FromValue(value, message.Response);
561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
583switch (message.Response.Status)
588using var document = JsonDocument.Parse(message.Response.ContentStream);
590return Response.FromValue(value, message.Response);
593throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623switch (message.Response.Status)
628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
630return Response.FromValue(value, message.Response);
633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WebApplicationFirewallPoliciesRestOperations.cs (54)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
140switch (message.Response.Status)
145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
147return Response.FromValue(value, message.Response);
150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
303switch (message.Response.Status)
309using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
311return Response.FromValue(value, message.Response);
314throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
341switch (message.Response.Status)
347using var document = JsonDocument.Parse(message.Response.ContentStream);
349return Response.FromValue(value, message.Response);
352throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398return message.Response;
400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
422switch (message.Response.Status)
427return message.Response;
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
464switch (message.Response.Status)
469using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
471return Response.FromValue(value, message.Response);
474throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
496switch (message.Response.Status)
501using var document = JsonDocument.Parse(message.Response.ContentStream);
503return Response.FromValue(value, message.Response);
506throw _clientDiagnostics.CreateRequestFailedException(message.Response);
536switch (message.Response.Status)
541using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
543return Response.FromValue(value, message.Response);
546throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
563switch (message.Response.Status)
568using var document = JsonDocument.Parse(message.Response.ContentStream);
570return Response.FromValue(value, message.Response);
573throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Resources (1678)
Generated\ApplicationDefinitionsRestOperations.cs (60)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93return Response.FromValue<ApplicationDefinition>(null, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
122using var document = JsonDocument.Parse(message.Response.ContentStream);
124return Response.FromValue(value, message.Response);
127return Response.FromValue<ApplicationDefinition>(null, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
170switch (message.Response.Status)
175return message.Response;
177throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
199switch (message.Response.Status)
204return message.Response;
206throw _clientDiagnostics.CreateRequestFailedException(message.Response);
256switch (message.Response.Status)
260return message.Response;
262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
289switch (message.Response.Status)
293return message.Response;
295throw _clientDiagnostics.CreateRequestFailedException(message.Response);
330switch (message.Response.Status)
335using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
337return Response.FromValue(value, message.Response);
340throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
362using var document = JsonDocument.Parse(message.Response.ContentStream);
364return Response.FromValue(value, message.Response);
367throw _clientDiagnostics.CreateRequestFailedException(message.Response);
399switch (message.Response.Status)
404using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
406return Response.FromValue(value, message.Response);
409return Response.FromValue<ApplicationDefinition>(null, message.Response);
411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
428switch (message.Response.Status)
433using var document = JsonDocument.Parse(message.Response.ContentStream);
435return Response.FromValue(value, message.Response);
438return Response.FromValue<ApplicationDefinition>(null, message.Response);
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
472switch (message.Response.Status)
477return message.Response;
479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
496switch (message.Response.Status)
501return message.Response;
503throw _clientDiagnostics.CreateRequestFailedException(message.Response);
544switch (message.Response.Status)
548return message.Response;
550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
572switch (message.Response.Status)
576return message.Response;
578throw _clientDiagnostics.CreateRequestFailedException(message.Response);
613switch (message.Response.Status)
618using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
620return Response.FromValue(value, message.Response);
623throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
645switch (message.Response.Status)
650using var document = JsonDocument.Parse(message.Response.ContentStream);
652return Response.FromValue(value, message.Response);
655throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ApplicationsRestOperations.cs (92)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93return Response.FromValue<Application>(null, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
122using var document = JsonDocument.Parse(message.Response.ContentStream);
124return Response.FromValue(value, message.Response);
127return Response.FromValue<Application>(null, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
170switch (message.Response.Status)
174return message.Response;
176throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
202return message.Response;
204throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254switch (message.Response.Status)
258return message.Response;
260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
287switch (message.Response.Status)
291return message.Response;
293throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
349return Response.FromValue(value, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
380using var document = JsonDocument.Parse(message.Response.ContentStream);
382return Response.FromValue(value, message.Response);
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
447switch (message.Response.Status)
452using var document = JsonDocument.Parse(message.Response.ContentStream);
454return Response.FromValue(value, message.Response);
457throw _clientDiagnostics.CreateRequestFailedException(message.Response);
483switch (message.Response.Status)
488using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
490return Response.FromValue(value, message.Response);
493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503switch (message.Response.Status)
508using var document = JsonDocument.Parse(message.Response.ContentStream);
510return Response.FromValue(value, message.Response);
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
545switch (message.Response.Status)
550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
552return Response.FromValue(value, message.Response);
555return Response.FromValue<Application>(null, message.Response);
557throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
574switch (message.Response.Status)
579using var document = JsonDocument.Parse(message.Response.ContentStream);
581return Response.FromValue(value, message.Response);
584return Response.FromValue<Application>(null, message.Response);
586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
618switch (message.Response.Status)
622return message.Response;
624throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
641switch (message.Response.Status)
645return message.Response;
647throw _clientDiagnostics.CreateRequestFailedException(message.Response);
688switch (message.Response.Status)
692return message.Response;
694throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
716switch (message.Response.Status)
720return message.Response;
722throw _clientDiagnostics.CreateRequestFailedException(message.Response);
762switch (message.Response.Status)
767using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
769return Response.FromValue(value, message.Response);
772throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
790switch (message.Response.Status)
795using var document = JsonDocument.Parse(message.Response.ContentStream);
797return Response.FromValue(value, message.Response);
800throw _clientDiagnostics.CreateRequestFailedException(message.Response);
835switch (message.Response.Status)
840using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
842return Response.FromValue(value, message.Response);
845throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
867switch (message.Response.Status)
872using var document = JsonDocument.Parse(message.Response.ContentStream);
874return Response.FromValue(value, message.Response);
877throw _clientDiagnostics.CreateRequestFailedException(message.Response);
907switch (message.Response.Status)
912using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
914return Response.FromValue(value, message.Response);
917throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
934switch (message.Response.Status)
939using var document = JsonDocument.Parse(message.Response.ContentStream);
941return Response.FromValue(value, message.Response);
944throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DeploymentRestOperations.cs (120)
88switch (message.Response.Status)
93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
95return Response.FromValue(value, message.Response);
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
130using var document = JsonDocument.Parse(message.Response.ContentStream);
132return Response.FromValue(value, message.Response);
135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
180switch (message.Response.Status)
185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
187return Response.FromValue(value, message.Response);
190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
213switch (message.Response.Status)
218using var document = JsonDocument.Parse(message.Response.ContentStream);
220return Response.FromValue(value, message.Response);
223throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
294switch (message.Response.Status)
299using var document = JsonDocument.Parse(message.Response.ContentStream);
301return Response.FromValue(value, message.Response);
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
349return Response.FromValue(value, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
370switch (message.Response.Status)
375using var document = JsonDocument.Parse(message.Response.ContentStream);
377return Response.FromValue(value, message.Response);
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
426switch (message.Response.Status)
431using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
433return Response.FromValue(value, message.Response);
436throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
463switch (message.Response.Status)
468using var document = JsonDocument.Parse(message.Response.ContentStream);
470return Response.FromValue(value, message.Response);
473throw _clientDiagnostics.CreateRequestFailedException(message.Response);
518switch (message.Response.Status)
523using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
525return Response.FromValue(value, message.Response);
528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
551switch (message.Response.Status)
556using var document = JsonDocument.Parse(message.Response.ContentStream);
558return Response.FromValue(value, message.Response);
561throw _clientDiagnostics.CreateRequestFailedException(message.Response);
602switch (message.Response.Status)
607using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
609return Response.FromValue(value, message.Response);
612throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
634switch (message.Response.Status)
639using var document = JsonDocument.Parse(message.Response.ContentStream);
641return Response.FromValue(value, message.Response);
644throw _clientDiagnostics.CreateRequestFailedException(message.Response);
684switch (message.Response.Status)
689using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
691return Response.FromValue(value, message.Response);
694throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
712switch (message.Response.Status)
717using var document = JsonDocument.Parse(message.Response.ContentStream);
719return Response.FromValue(value, message.Response);
722throw _clientDiagnostics.CreateRequestFailedException(message.Response);
770switch (message.Response.Status)
775using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
777return Response.FromValue(value, message.Response);
780throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
807switch (message.Response.Status)
812using var document = JsonDocument.Parse(message.Response.ContentStream);
814return Response.FromValue(value, message.Response);
817throw _clientDiagnostics.CreateRequestFailedException(message.Response);
864switch (message.Response.Status)
869using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
871return Response.FromValue(value, message.Response);
874throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
897switch (message.Response.Status)
902using var document = JsonDocument.Parse(message.Response.ContentStream);
904return Response.FromValue(value, message.Response);
907throw _clientDiagnostics.CreateRequestFailedException(message.Response);
948switch (message.Response.Status)
953using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
955return Response.FromValue(value, message.Response);
958throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
986switch (message.Response.Status)
991using var document = JsonDocument.Parse(message.Response.ContentStream);
993return Response.FromValue(value, message.Response);
996throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1032switch (message.Response.Status)
1037using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1039return Response.FromValue(value, message.Response);
1042throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1065switch (message.Response.Status)
1070using var document = JsonDocument.Parse(message.Response.ContentStream);
1072return Response.FromValue(value, message.Response);
1075throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1116switch (message.Response.Status)
1121using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1123return Response.FromValue(value, message.Response);
1126throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1154switch (message.Response.Status)
1159using var document = JsonDocument.Parse(message.Response.ContentStream);
1161return Response.FromValue(value, message.Response);
1164throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1200switch (message.Response.Status)
1205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1207return Response.FromValue(value, message.Response);
1210throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1233switch (message.Response.Status)
1238using var document = JsonDocument.Parse(message.Response.ContentStream);
1240return Response.FromValue(value, message.Response);
1243throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1284switch (message.Response.Status)
1289using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1291return Response.FromValue(value, message.Response);
1294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1322switch (message.Response.Status)
1327using var document = JsonDocument.Parse(message.Response.ContentStream);
1329return Response.FromValue(value, message.Response);
1332throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DeploymentScriptsRestOperations.cs (76)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
180switch (message.Response.Status)
185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
187return Response.FromValue(value, message.Response);
190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
213switch (message.Response.Status)
218using var document = JsonDocument.Parse(message.Response.ContentStream);
220return Response.FromValue(value, message.Response);
223throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return Response.FromValue(value, message.Response);
306throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
351return message.Response;
353throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
379return message.Response;
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
407switch (message.Response.Status)
412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
414return Response.FromValue(value, message.Response);
417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
432using var document = JsonDocument.Parse(message.Response.ContentStream);
434return Response.FromValue(value, message.Response);
437throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
486return Response.FromValue(value, message.Response);
489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
511switch (message.Response.Status)
516using var document = JsonDocument.Parse(message.Response.ContentStream);
518return Response.FromValue(value, message.Response);
521throw _clientDiagnostics.CreateRequestFailedException(message.Response);
568switch (message.Response.Status)
573using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
575return Response.FromValue(value, message.Response);
578throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
601switch (message.Response.Status)
606using var document = JsonDocument.Parse(message.Response.ContentStream);
608return Response.FromValue(value, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
646switch (message.Response.Status)
651using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
653return Response.FromValue(value, message.Response);
656throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
673switch (message.Response.Status)
678using var document = JsonDocument.Parse(message.Response.ContentStream);
680return Response.FromValue(value, message.Response);
683throw _clientDiagnostics.CreateRequestFailedException(message.Response);
713switch (message.Response.Status)
718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
720return Response.FromValue(value, message.Response);
723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
740switch (message.Response.Status)
745using var document = JsonDocument.Parse(message.Response.ContentStream);
747return Response.FromValue(value, message.Response);
750throw _clientDiagnostics.CreateRequestFailedException(message.Response);
785switch (message.Response.Status)
790using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
792return Response.FromValue(value, message.Response);
795throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
817switch (message.Response.Status)
822using var document = JsonDocument.Parse(message.Response.ContentStream);
824return Response.FromValue(value, message.Response);
827throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DeploymentsRestOperations.cs (344)
81switch (message.Response.Status)
85return message.Response;
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
109switch (message.Response.Status)
113return message.Response;
115throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159return Response.FromValue(value, message.Response);
164return Response.FromValue(value, message.Response);
167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
189switch (message.Response.Status)
194return Response.FromValue(value, message.Response);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
250switch (message.Response.Status)
254return message.Response;
256throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
283switch (message.Response.Status)
287return message.Response;
289throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
333using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
335return Response.FromValue(value, message.Response);
338throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
360switch (message.Response.Status)
365using var document = JsonDocument.Parse(message.Response.ContentStream);
367return Response.FromValue(value, message.Response);
370throw _clientDiagnostics.CreateRequestFailedException(message.Response);
410switch (message.Response.Status)
413return message.Response;
415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
440return message.Response;
442throw _clientDiagnostics.CreateRequestFailedException(message.Response);
491switch (message.Response.Status)
496return message.Response;
498throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530return message.Response;
532throw _clientDiagnostics.CreateRequestFailedException(message.Response);
572switch (message.Response.Status)
577using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
579return Response.FromValue(value, message.Response);
582throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
604switch (message.Response.Status)
609using var document = JsonDocument.Parse(message.Response.ContentStream);
611return Response.FromValue(value, message.Response);
614throw _clientDiagnostics.CreateRequestFailedException(message.Response);
657switch (message.Response.Status)
662using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
664return Response.FromValue(value, message.Response);
667throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
686switch (message.Response.Status)
691using var document = JsonDocument.Parse(message.Response.ContentStream);
693return Response.FromValue(value, message.Response);
696throw _clientDiagnostics.CreateRequestFailedException(message.Response);
728switch (message.Response.Status)
732return message.Response;
734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
751switch (message.Response.Status)
755return message.Response;
757throw _clientDiagnostics.CreateRequestFailedException(message.Response);
789switch (message.Response.Status)
794return Response.FromValue(value, message.Response);
799return Response.FromValue(value, message.Response);
802throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
819switch (message.Response.Status)
824return Response.FromValue(value, message.Response);
829return Response.FromValue(value, message.Response);
832throw _clientDiagnostics.CreateRequestFailedException(message.Response);
873switch (message.Response.Status)
877return message.Response;
879throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
901switch (message.Response.Status)
905return message.Response;
907throw _clientDiagnostics.CreateRequestFailedException(message.Response);
939switch (message.Response.Status)
944using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
946return Response.FromValue(value, message.Response);
949throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
966switch (message.Response.Status)
971using var document = JsonDocument.Parse(message.Response.ContentStream);
973return Response.FromValue(value, message.Response);
976throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1009switch (message.Response.Status)
1012return message.Response;
1014throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1031switch (message.Response.Status)
1034return message.Response;
1036throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1078switch (message.Response.Status)
1083return message.Response;
1085throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1107switch (message.Response.Status)
1112return message.Response;
1114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1147switch (message.Response.Status)
1152using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1154return Response.FromValue(value, message.Response);
1157throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1174switch (message.Response.Status)
1179using var document = JsonDocument.Parse(message.Response.ContentStream);
1181return Response.FromValue(value, message.Response);
1184throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1218switch (message.Response.Status)
1223using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1225return Response.FromValue(value, message.Response);
1228throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1240switch (message.Response.Status)
1245using var document = JsonDocument.Parse(message.Response.ContentStream);
1247return Response.FromValue(value, message.Response);
1250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1289switch (message.Response.Status)
1293return message.Response;
1295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1317switch (message.Response.Status)
1321return message.Response;
1323throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1362switch (message.Response.Status)
1367return Response.FromValue(value, message.Response);
1372return Response.FromValue(value, message.Response);
1375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1397switch (message.Response.Status)
1402return Response.FromValue(value, message.Response);
1407return Response.FromValue(value, message.Response);
1410throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1458switch (message.Response.Status)
1462return message.Response;
1464throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1491switch (message.Response.Status)
1495return message.Response;
1497throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1536switch (message.Response.Status)
1541using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1543return Response.FromValue(value, message.Response);
1546throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1568switch (message.Response.Status)
1573using var document = JsonDocument.Parse(message.Response.ContentStream);
1575return Response.FromValue(value, message.Response);
1578throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1618switch (message.Response.Status)
1621return message.Response;
1623throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1645switch (message.Response.Status)
1648return message.Response;
1650throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1699switch (message.Response.Status)
1704return message.Response;
1706throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1733switch (message.Response.Status)
1738return message.Response;
1740throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1780switch (message.Response.Status)
1785using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1787return Response.FromValue(value, message.Response);
1790throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1812switch (message.Response.Status)
1817using var document = JsonDocument.Parse(message.Response.ContentStream);
1819return Response.FromValue(value, message.Response);
1822throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1865switch (message.Response.Status)
1870using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1872return Response.FromValue(value, message.Response);
1875throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1894switch (message.Response.Status)
1899using var document = JsonDocument.Parse(message.Response.ContentStream);
1901return Response.FromValue(value, message.Response);
1904throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1938switch (message.Response.Status)
1942return message.Response;
1944throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1961switch (message.Response.Status)
1965return message.Response;
1967throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2001switch (message.Response.Status)
2006return Response.FromValue(value, message.Response);
2011return Response.FromValue(value, message.Response);
2014throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2031switch (message.Response.Status)
2036return Response.FromValue(value, message.Response);
2041return Response.FromValue(value, message.Response);
2044throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2087switch (message.Response.Status)
2091return message.Response;
2093throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2115switch (message.Response.Status)
2119return message.Response;
2121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2155switch (message.Response.Status)
2160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2162return Response.FromValue(value, message.Response);
2165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2182switch (message.Response.Status)
2187using var document = JsonDocument.Parse(message.Response.ContentStream);
2189return Response.FromValue(value, message.Response);
2192throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2227switch (message.Response.Status)
2230return message.Response;
2232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2249switch (message.Response.Status)
2252return message.Response;
2254throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2298switch (message.Response.Status)
2303return message.Response;
2305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2327switch (message.Response.Status)
2332return message.Response;
2334throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2378var headers = new DeploymentsWhatIfAtSubscriptionScopeHeaders(message.Response);
2379switch (message.Response.Status)
2383return ResponseWithHeaders.FromValue(headers, message.Response);
2385throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2407var headers = new DeploymentsWhatIfAtSubscriptionScopeHeaders(message.Response);
2408switch (message.Response.Status)
2412return ResponseWithHeaders.FromValue(headers, message.Response);
2414throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2449switch (message.Response.Status)
2454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2456return Response.FromValue(value, message.Response);
2459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2476switch (message.Response.Status)
2481using var document = JsonDocument.Parse(message.Response.ContentStream);
2483return Response.FromValue(value, message.Response);
2486throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2522switch (message.Response.Status)
2527using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2529return Response.FromValue(value, message.Response);
2532throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2544switch (message.Response.Status)
2549using var document = JsonDocument.Parse(message.Response.ContentStream);
2551return Response.FromValue(value, message.Response);
2554throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2595switch (message.Response.Status)
2599return message.Response;
2601throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2623switch (message.Response.Status)
2627return message.Response;
2629throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2670switch (message.Response.Status)
2675return Response.FromValue(value, message.Response);
2680return Response.FromValue(value, message.Response);
2683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2705switch (message.Response.Status)
2710return Response.FromValue(value, message.Response);
2715return Response.FromValue(value, message.Response);
2718throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2768switch (message.Response.Status)
2772return message.Response;
2774throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2801switch (message.Response.Status)
2805return message.Response;
2807throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2848switch (message.Response.Status)
2853using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2855return Response.FromValue(value, message.Response);
2858throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2880switch (message.Response.Status)
2885using var document = JsonDocument.Parse(message.Response.ContentStream);
2887return Response.FromValue(value, message.Response);
2890throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2932switch (message.Response.Status)
2935return message.Response;
2937throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2959switch (message.Response.Status)
2962return message.Response;
2964throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3015switch (message.Response.Status)
3020return message.Response;
3022throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3049switch (message.Response.Status)
3054return message.Response;
3056throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3107var headers = new DeploymentsWhatIfHeaders(message.Response);
3108switch (message.Response.Status)
3112return ResponseWithHeaders.FromValue(headers, message.Response);
3114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3141var headers = new DeploymentsWhatIfHeaders(message.Response);
3142switch (message.Response.Status)
3146return ResponseWithHeaders.FromValue(headers, message.Response);
3148throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3190switch (message.Response.Status)
3195using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3197return Response.FromValue(value, message.Response);
3200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3222switch (message.Response.Status)
3227using var document = JsonDocument.Parse(message.Response.ContentStream);
3229return Response.FromValue(value, message.Response);
3232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3277switch (message.Response.Status)
3282using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3284return Response.FromValue(value, message.Response);
3287throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3306switch (message.Response.Status)
3311using var document = JsonDocument.Parse(message.Response.ContentStream);
3313return Response.FromValue(value, message.Response);
3316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3351switch (message.Response.Status)
3356using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3358return Response.FromValue(value, message.Response);
3361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3378switch (message.Response.Status)
3383using var document = JsonDocument.Parse(message.Response.ContentStream);
3385return Response.FromValue(value, message.Response);
3388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3425switch (message.Response.Status)
3430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3432return Response.FromValue(value, message.Response);
3435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3459switch (message.Response.Status)
3464using var document = JsonDocument.Parse(message.Response.ContentStream);
3466return Response.FromValue(value, message.Response);
3469throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3501switch (message.Response.Status)
3506using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3508return Response.FromValue(value, message.Response);
3511throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3530switch (message.Response.Status)
3535using var document = JsonDocument.Parse(message.Response.ContentStream);
3537return Response.FromValue(value, message.Response);
3540throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3577switch (message.Response.Status)
3582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3584return Response.FromValue(value, message.Response);
3587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3611switch (message.Response.Status)
3616using var document = JsonDocument.Parse(message.Response.ContentStream);
3618return Response.FromValue(value, message.Response);
3621throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3653switch (message.Response.Status)
3658using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3660return Response.FromValue(value, message.Response);
3663throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3682switch (message.Response.Status)
3687using var document = JsonDocument.Parse(message.Response.ContentStream);
3689return Response.FromValue(value, message.Response);
3692throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3729switch (message.Response.Status)
3734using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3736return Response.FromValue(value, message.Response);
3739throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3763switch (message.Response.Status)
3768using var document = JsonDocument.Parse(message.Response.ContentStream);
3770return Response.FromValue(value, message.Response);
3773throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FeaturesRestOperations.cs (56)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
295switch (message.Response.Status)
300using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
302return Response.FromValue(value, message.Response);
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
327switch (message.Response.Status)
332using var document = JsonDocument.Parse(message.Response.ContentStream);
334return Response.FromValue(value, message.Response);
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
379switch (message.Response.Status)
384using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
386return Response.FromValue(value, message.Response);
389throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
411switch (message.Response.Status)
416using var document = JsonDocument.Parse(message.Response.ContentStream);
418return Response.FromValue(value, message.Response);
421throw _clientDiagnostics.CreateRequestFailedException(message.Response);
451switch (message.Response.Status)
456using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
458return Response.FromValue(value, message.Response);
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
478switch (message.Response.Status)
483using var document = JsonDocument.Parse(message.Response.ContentStream);
485return Response.FromValue(value, message.Response);
488throw _clientDiagnostics.CreateRequestFailedException(message.Response);
523switch (message.Response.Status)
528using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
530return Response.FromValue(value, message.Response);
533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
555switch (message.Response.Status)
560using var document = JsonDocument.Parse(message.Response.ContentStream);
562return Response.FromValue(value, message.Response);
565throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagementLocksRestOperations.cs (152)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
213return message.Response;
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
256switch (message.Response.Status)
261using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
263return Response.FromValue(value, message.Response);
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
288switch (message.Response.Status)
293using var document = JsonDocument.Parse(message.Response.ContentStream);
295return Response.FromValue(value, message.Response);
298throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
390using var document = JsonDocument.Parse(message.Response.ContentStream);
392return Response.FromValue(value, message.Response);
395throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
437return message.Response;
439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
461switch (message.Response.Status)
465return message.Response;
467throw _clientDiagnostics.CreateRequestFailedException(message.Response);
506switch (message.Response.Status)
511using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
513return Response.FromValue(value, message.Response);
516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
538switch (message.Response.Status)
543using var document = JsonDocument.Parse(message.Response.ContentStream);
545return Response.FromValue(value, message.Response);
548throw _clientDiagnostics.CreateRequestFailedException(message.Response);
626switch (message.Response.Status)
632using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
634return Response.FromValue(value, message.Response);
637throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
684switch (message.Response.Status)
690using var document = JsonDocument.Parse(message.Response.ContentStream);
692return Response.FromValue(value, message.Response);
695throw _clientDiagnostics.CreateRequestFailedException(message.Response);
763switch (message.Response.Status)
767return message.Response;
769throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
811switch (message.Response.Status)
815return message.Response;
817throw _clientDiagnostics.CreateRequestFailedException(message.Response);
886switch (message.Response.Status)
891using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
893return Response.FromValue(value, message.Response);
896throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
938switch (message.Response.Status)
943using var document = JsonDocument.Parse(message.Response.ContentStream);
945return Response.FromValue(value, message.Response);
948throw _clientDiagnostics.CreateRequestFailedException(message.Response);
991switch (message.Response.Status)
997using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
999return Response.FromValue(value, message.Response);
1002throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1024switch (message.Response.Status)
1030using var document = JsonDocument.Parse(message.Response.ContentStream);
1032return Response.FromValue(value, message.Response);
1035throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1068switch (message.Response.Status)
1072return message.Response;
1074throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1091switch (message.Response.Status)
1095return message.Response;
1097throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1131switch (message.Response.Status)
1136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1138return Response.FromValue(value, message.Response);
1141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1158switch (message.Response.Status)
1163using var document = JsonDocument.Parse(message.Response.ContentStream);
1165return Response.FromValue(value, message.Response);
1168throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1208switch (message.Response.Status)
1213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1215return Response.FromValue(value, message.Response);
1218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1236switch (message.Response.Status)
1241using var document = JsonDocument.Parse(message.Response.ContentStream);
1243return Response.FromValue(value, message.Response);
1246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1314switch (message.Response.Status)
1319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1321return Response.FromValue(value, message.Response);
1324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1362switch (message.Response.Status)
1367using var document = JsonDocument.Parse(message.Response.ContentStream);
1369return Response.FromValue(value, message.Response);
1372throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1403switch (message.Response.Status)
1408using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1410return Response.FromValue(value, message.Response);
1413throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1424switch (message.Response.Status)
1429using var document = JsonDocument.Parse(message.Response.ContentStream);
1431return Response.FromValue(value, message.Response);
1434throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1472switch (message.Response.Status)
1477using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1479return Response.FromValue(value, message.Response);
1482throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1500switch (message.Response.Status)
1505using var document = JsonDocument.Parse(message.Response.ContentStream);
1507return Response.FromValue(value, message.Response);
1510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1546switch (message.Response.Status)
1551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1553return Response.FromValue(value, message.Response);
1556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1579switch (message.Response.Status)
1584using var document = JsonDocument.Parse(message.Response.ContentStream);
1586return Response.FromValue(value, message.Response);
1589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1645switch (message.Response.Status)
1650using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1652return Response.FromValue(value, message.Response);
1655throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1698switch (message.Response.Status)
1703using var document = JsonDocument.Parse(message.Response.ContentStream);
1705return Response.FromValue(value, message.Response);
1708throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1739switch (message.Response.Status)
1744using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1746return Response.FromValue(value, message.Response);
1749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1767switch (message.Response.Status)
1772using var document = JsonDocument.Parse(message.Response.ContentStream);
1774return Response.FromValue(value, message.Response);
1777throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1813switch (message.Response.Status)
1818using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1820return Response.FromValue(value, message.Response);
1823throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1846switch (message.Response.Status)
1851using var document = JsonDocument.Parse(message.Response.ContentStream);
1853return Response.FromValue(value, message.Response);
1856throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyAssignmentsRestOperations.cs (116)
81switch (message.Response.Status)
86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
88return Response.FromValue(value, message.Response);
91return Response.FromValue<PolicyAssignment>(null, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125return Response.FromValue<PolicyAssignment>(null, message.Response);
127throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
182return Response.FromValue(value, message.Response);
185throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
212switch (message.Response.Status)
217using var document = JsonDocument.Parse(message.Response.ContentStream);
219return Response.FromValue(value, message.Response);
222throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
298using var document = JsonDocument.Parse(message.Response.ContentStream);
300return Response.FromValue(value, message.Response);
303throw _clientDiagnostics.CreateRequestFailedException(message.Response);
343switch (message.Response.Status)
348using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
350return Response.FromValue(value, message.Response);
353throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
371switch (message.Response.Status)
376using var document = JsonDocument.Parse(message.Response.ContentStream);
378return Response.FromValue(value, message.Response);
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
449switch (message.Response.Status)
454using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
456return Response.FromValue(value, message.Response);
459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
497switch (message.Response.Status)
502using var document = JsonDocument.Parse(message.Response.ContentStream);
504return Response.FromValue(value, message.Response);
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
546switch (message.Response.Status)
551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
553return Response.FromValue(value, message.Response);
556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
578switch (message.Response.Status)
583using var document = JsonDocument.Parse(message.Response.ContentStream);
585return Response.FromValue(value, message.Response);
588throw _clientDiagnostics.CreateRequestFailedException(message.Response);
619switch (message.Response.Status)
624using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
626return Response.FromValue(value, message.Response);
629throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
640switch (message.Response.Status)
645using var document = JsonDocument.Parse(message.Response.ContentStream);
647return Response.FromValue(value, message.Response);
650throw _clientDiagnostics.CreateRequestFailedException(message.Response);
682switch (message.Response.Status)
687using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
689return Response.FromValue(value, message.Response);
692return Response.FromValue<PolicyAssignment>(null, message.Response);
694throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
711switch (message.Response.Status)
716using var document = JsonDocument.Parse(message.Response.ContentStream);
718return Response.FromValue(value, message.Response);
721return Response.FromValue<PolicyAssignment>(null, message.Response);
723throw _clientDiagnostics.CreateRequestFailedException(message.Response);
764switch (message.Response.Status)
769using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
771return Response.FromValue(value, message.Response);
774throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
796switch (message.Response.Status)
801using var document = JsonDocument.Parse(message.Response.ContentStream);
803return Response.FromValue(value, message.Response);
806throw _clientDiagnostics.CreateRequestFailedException(message.Response);
838switch (message.Response.Status)
843using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
845return Response.FromValue(value, message.Response);
848throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
865switch (message.Response.Status)
870using var document = JsonDocument.Parse(message.Response.ContentStream);
872return Response.FromValue(value, message.Response);
875throw _clientDiagnostics.CreateRequestFailedException(message.Response);
911switch (message.Response.Status)
916using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
918return Response.FromValue(value, message.Response);
921throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
944switch (message.Response.Status)
949using var document = JsonDocument.Parse(message.Response.ContentStream);
951return Response.FromValue(value, message.Response);
954throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1010switch (message.Response.Status)
1015using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1017return Response.FromValue(value, message.Response);
1020throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1063switch (message.Response.Status)
1068using var document = JsonDocument.Parse(message.Response.ContentStream);
1070return Response.FromValue(value, message.Response);
1073throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1113switch (message.Response.Status)
1118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1120return Response.FromValue(value, message.Response);
1123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1150switch (message.Response.Status)
1155using var document = JsonDocument.Parse(message.Response.ContentStream);
1157return Response.FromValue(value, message.Response);
1160throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1191switch (message.Response.Status)
1196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1198return Response.FromValue(value, message.Response);
1201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1219switch (message.Response.Status)
1224using var document = JsonDocument.Parse(message.Response.ContentStream);
1226return Response.FromValue(value, message.Response);
1229throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyDefinitionsRestOperations.cs (100)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
122using var document = JsonDocument.Parse(message.Response.ContentStream);
124return Response.FromValue(value, message.Response);
127throw _clientDiagnostics.CreateRequestFailedException(message.Response);
161switch (message.Response.Status)
165return message.Response;
167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
184switch (message.Response.Status)
188return message.Response;
190throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
231return Response.FromValue(value, message.Response);
234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251switch (message.Response.Status)
256using var document = JsonDocument.Parse(message.Response.ContentStream);
258return Response.FromValue(value, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
293switch (message.Response.Status)
298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
300return Response.FromValue(value, message.Response);
303throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
320switch (message.Response.Status)
325using var document = JsonDocument.Parse(message.Response.ContentStream);
327return Response.FromValue(value, message.Response);
330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
415switch (message.Response.Status)
420using var document = JsonDocument.Parse(message.Response.ContentStream);
422return Response.FromValue(value, message.Response);
425throw _clientDiagnostics.CreateRequestFailedException(message.Response);
464switch (message.Response.Status)
468return message.Response;
470throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
492switch (message.Response.Status)
496return message.Response;
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
537switch (message.Response.Status)
542using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
544return Response.FromValue(value, message.Response);
547throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
569switch (message.Response.Status)
574using var document = JsonDocument.Parse(message.Response.ContentStream);
576return Response.FromValue(value, message.Response);
579throw _clientDiagnostics.CreateRequestFailedException(message.Response);
605switch (message.Response.Status)
610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
612return Response.FromValue(value, message.Response);
615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
625switch (message.Response.Status)
630using var document = JsonDocument.Parse(message.Response.ContentStream);
632return Response.FromValue(value, message.Response);
635throw _clientDiagnostics.CreateRequestFailedException(message.Response);
659switch (message.Response.Status)
664using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
666return Response.FromValue(value, message.Response);
669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
679switch (message.Response.Status)
684using var document = JsonDocument.Parse(message.Response.ContentStream);
686return Response.FromValue(value, message.Response);
689throw _clientDiagnostics.CreateRequestFailedException(message.Response);
722switch (message.Response.Status)
727using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
729return Response.FromValue(value, message.Response);
732throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
749switch (message.Response.Status)
754using var document = JsonDocument.Parse(message.Response.ContentStream);
756return Response.FromValue(value, message.Response);
759throw _clientDiagnostics.CreateRequestFailedException(message.Response);
789switch (message.Response.Status)
794using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
796return Response.FromValue(value, message.Response);
799throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
816switch (message.Response.Status)
821using var document = JsonDocument.Parse(message.Response.ContentStream);
823return Response.FromValue(value, message.Response);
826throw _clientDiagnostics.CreateRequestFailedException(message.Response);
856switch (message.Response.Status)
861using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
863return Response.FromValue(value, message.Response);
866throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
883switch (message.Response.Status)
888using var document = JsonDocument.Parse(message.Response.ContentStream);
890return Response.FromValue(value, message.Response);
893throw _clientDiagnostics.CreateRequestFailedException(message.Response);
928switch (message.Response.Status)
933using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
935return Response.FromValue(value, message.Response);
938throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
960switch (message.Response.Status)
965using var document = JsonDocument.Parse(message.Response.ContentStream);
967return Response.FromValue(value, message.Response);
970throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicySetDefinitionsRestOperations.cs (100)
85switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
167return message.Response;
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
186switch (message.Response.Status)
190return message.Response;
192throw _clientDiagnostics.CreateRequestFailedException(message.Response);
226switch (message.Response.Status)
231using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
233return Response.FromValue(value, message.Response);
236throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
253switch (message.Response.Status)
258using var document = JsonDocument.Parse(message.Response.ContentStream);
260return Response.FromValue(value, message.Response);
263throw _clientDiagnostics.CreateRequestFailedException(message.Response);
295switch (message.Response.Status)
300using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
302return Response.FromValue(value, message.Response);
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
322switch (message.Response.Status)
327using var document = JsonDocument.Parse(message.Response.ContentStream);
329return Response.FromValue(value, message.Response);
332throw _clientDiagnostics.CreateRequestFailedException(message.Response);
358switch (message.Response.Status)
363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
365return Response.FromValue(value, message.Response);
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
412switch (message.Response.Status)
417using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
419return Response.FromValue(value, message.Response);
422throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
432switch (message.Response.Status)
437using var document = JsonDocument.Parse(message.Response.ContentStream);
439return Response.FromValue(value, message.Response);
442throw _clientDiagnostics.CreateRequestFailedException(message.Response);
490switch (message.Response.Status)
496using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
498return Response.FromValue(value, message.Response);
501throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
528switch (message.Response.Status)
534using var document = JsonDocument.Parse(message.Response.ContentStream);
536return Response.FromValue(value, message.Response);
539throw _clientDiagnostics.CreateRequestFailedException(message.Response);
578switch (message.Response.Status)
582return message.Response;
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
651switch (message.Response.Status)
656using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
658return Response.FromValue(value, message.Response);
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
683switch (message.Response.Status)
688using var document = JsonDocument.Parse(message.Response.ContentStream);
690return Response.FromValue(value, message.Response);
693throw _clientDiagnostics.CreateRequestFailedException(message.Response);
726switch (message.Response.Status)
731using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
733return Response.FromValue(value, message.Response);
736throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
753switch (message.Response.Status)
758using var document = JsonDocument.Parse(message.Response.ContentStream);
760return Response.FromValue(value, message.Response);
763throw _clientDiagnostics.CreateRequestFailedException(message.Response);
793switch (message.Response.Status)
798using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
800return Response.FromValue(value, message.Response);
803throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
820switch (message.Response.Status)
825using var document = JsonDocument.Parse(message.Response.ContentStream);
827return Response.FromValue(value, message.Response);
830throw _clientDiagnostics.CreateRequestFailedException(message.Response);
860switch (message.Response.Status)
865using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
867return Response.FromValue(value, message.Response);
870throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
887switch (message.Response.Status)
892using var document = JsonDocument.Parse(message.Response.ContentStream);
894return Response.FromValue(value, message.Response);
897throw _clientDiagnostics.CreateRequestFailedException(message.Response);
932switch (message.Response.Status)
937using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
939return Response.FromValue(value, message.Response);
942throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
964switch (message.Response.Status)
969using var document = JsonDocument.Parse(message.Response.ContentStream);
971return Response.FromValue(value, message.Response);
974throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ProvidersRestOperations.cs (64)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
149switch (message.Response.Status)
154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
156return Response.FromValue(value, message.Response);
159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
176switch (message.Response.Status)
181using var document = JsonDocument.Parse(message.Response.ContentStream);
183return Response.FromValue(value, message.Response);
186throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
244switch (message.Response.Status)
249using var document = JsonDocument.Parse(message.Response.ContentStream);
251return Response.FromValue(value, message.Response);
254throw _clientDiagnostics.CreateRequestFailedException(message.Response);
288switch (message.Response.Status)
293using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
295return Response.FromValue(value, message.Response);
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
310switch (message.Response.Status)
315using var document = JsonDocument.Parse(message.Response.ContentStream);
317return Response.FromValue(value, message.Response);
320throw _clientDiagnostics.CreateRequestFailedException(message.Response);
359switch (message.Response.Status)
364using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
366return Response.FromValue(value, message.Response);
369throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
434switch (message.Response.Status)
439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
441return Response.FromValue(value, message.Response);
444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
462switch (message.Response.Status)
467using var document = JsonDocument.Parse(message.Response.ContentStream);
469return Response.FromValue(value, message.Response);
472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
504switch (message.Response.Status)
509using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
511return Response.FromValue(value, message.Response);
514throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
533switch (message.Response.Status)
538using var document = JsonDocument.Parse(message.Response.ContentStream);
540return Response.FromValue(value, message.Response);
543throw _clientDiagnostics.CreateRequestFailedException(message.Response);
575switch (message.Response.Status)
580using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
582return Response.FromValue(value, message.Response);
585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
604switch (message.Response.Status)
609using var document = JsonDocument.Parse(message.Response.ContentStream);
611return Response.FromValue(value, message.Response);
614throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ResourceGroupsRestOperations.cs (60)
76switch (message.Response.Status)
81return Response.FromValue(value, message.Response);
86return Response.FromValue(value, message.Response);
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
106switch (message.Response.Status)
111return Response.FromValue(value, message.Response);
116return Response.FromValue(value, message.Response);
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
162switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
195switch (message.Response.Status)
201using var document = JsonDocument.Parse(message.Response.ContentStream);
203return Response.FromValue(value, message.Response);
206throw _clientDiagnostics.CreateRequestFailedException(message.Response);
240switch (message.Response.Status)
244return message.Response;
246throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
263switch (message.Response.Status)
267return message.Response;
269throw _clientDiagnostics.CreateRequestFailedException(message.Response);
303switch (message.Response.Status)
308using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
310return Response.FromValue(value, message.Response);
313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
330switch (message.Response.Status)
335using var document = JsonDocument.Parse(message.Response.ContentStream);
337return Response.FromValue(value, message.Response);
340throw _clientDiagnostics.CreateRequestFailedException(message.Response);
383switch (message.Response.Status)
388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
390return Response.FromValue(value, message.Response);
393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
415switch (message.Response.Status)
420using var document = JsonDocument.Parse(message.Response.ContentStream);
422return Response.FromValue(value, message.Response);
425throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
473return message.Response;
475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
497switch (message.Response.Status)
501return message.Response;
503throw _clientDiagnostics.CreateRequestFailedException(message.Response);
539switch (message.Response.Status)
544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
546return Response.FromValue(value, message.Response);
549throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
561switch (message.Response.Status)
566using var document = JsonDocument.Parse(message.Response.ContentStream);
568return Response.FromValue(value, message.Response);
571throw _clientDiagnostics.CreateRequestFailedException(message.Response);
603switch (message.Response.Status)
608using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
610return Response.FromValue(value, message.Response);
613throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
632switch (message.Response.Status)
637using var document = JsonDocument.Parse(message.Response.ContentStream);
639return Response.FromValue(value, message.Response);
642throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ResourceLinksRestOperations.cs (54)
73switch (message.Response.Status)
77return message.Response;
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
96switch (message.Response.Status)
100return message.Response;
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
143switch (message.Response.Status)
149using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
151return Response.FromValue(value, message.Response);
154throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
176switch (message.Response.Status)
182using var document = JsonDocument.Parse(message.Response.ContentStream);
184return Response.FromValue(value, message.Response);
187throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
226return Response.FromValue(value, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
246switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
294return Response.FromValue(value, message.Response);
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
308switch (message.Response.Status)
313using var document = JsonDocument.Parse(message.Response.ContentStream);
315return Response.FromValue(value, message.Response);
318throw _clientDiagnostics.CreateRequestFailedException(message.Response);
352switch (message.Response.Status)
357using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
359return Response.FromValue(value, message.Response);
362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return Response.FromValue(value, message.Response);
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
448switch (message.Response.Status)
453using var document = JsonDocument.Parse(message.Response.ContentStream);
455return Response.FromValue(value, message.Response);
458throw _clientDiagnostics.CreateRequestFailedException(message.Response);
493switch (message.Response.Status)
498using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
500return Response.FromValue(value, message.Response);
503throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ResourcesRestOperations.cs (112)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
122switch (message.Response.Status)
127using var document = JsonDocument.Parse(message.Response.ContentStream);
129return Response.FromValue(value, message.Response);
132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
176switch (message.Response.Status)
180return message.Response;
182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
204switch (message.Response.Status)
208return message.Response;
210throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254switch (message.Response.Status)
258return message.Response;
260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
282switch (message.Response.Status)
286return message.Response;
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
336return Response.FromValue(value, message.Response);
339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
352switch (message.Response.Status)
357using var document = JsonDocument.Parse(message.Response.ContentStream);
359return Response.FromValue(value, message.Response);
362throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429switch (message.Response.Status)
434return Response.FromValue(value, message.Response);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
484switch (message.Response.Status)
489return Response.FromValue(value, message.Response);
494return Response.FromValue(value, message.Response);
497throw _clientDiagnostics.CreateRequestFailedException(message.Response);
564switch (message.Response.Status)
569return message.Response;
571throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
613switch (message.Response.Status)
618return message.Response;
620throw _clientDiagnostics.CreateRequestFailedException(message.Response);
696switch (message.Response.Status)
701return message.Response;
703throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
750switch (message.Response.Status)
755return message.Response;
757throw _clientDiagnostics.CreateRequestFailedException(message.Response);
833switch (message.Response.Status)
837return message.Response;
839throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
886switch (message.Response.Status)
890return message.Response;
892throw _clientDiagnostics.CreateRequestFailedException(message.Response);
959switch (message.Response.Status)
964using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
966return Response.FromValue(value, message.Response);
969throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1011switch (message.Response.Status)
1016using var document = JsonDocument.Parse(message.Response.ContentStream);
1018return Response.FromValue(value, message.Response);
1021throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1058switch (message.Response.Status)
1063return Response.FromValue(value, message.Response);
1068return Response.FromValue(value, message.Response);
1071throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1093switch (message.Response.Status)
1098return Response.FromValue(value, message.Response);
1103return Response.FromValue(value, message.Response);
1106throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1143switch (message.Response.Status)
1148return message.Response;
1150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1172switch (message.Response.Status)
1177return message.Response;
1179throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1225switch (message.Response.Status)
1230return message.Response;
1232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1259switch (message.Response.Status)
1264return message.Response;
1266throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1312switch (message.Response.Status)
1316return message.Response;
1318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1345switch (message.Response.Status)
1349return message.Response;
1351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1388switch (message.Response.Status)
1393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1395return Response.FromValue(value, message.Response);
1398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1420switch (message.Response.Status)
1425using var document = JsonDocument.Parse(message.Response.ContentStream);
1427return Response.FromValue(value, message.Response);
1430throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1468switch (message.Response.Status)
1473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1475return Response.FromValue(value, message.Response);
1478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1503switch (message.Response.Status)
1508using var document = JsonDocument.Parse(message.Response.ContentStream);
1510return Response.FromValue(value, message.Response);
1513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1546switch (message.Response.Status)
1551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1553return Response.FromValue(value, message.Response);
1556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1576switch (message.Response.Status)
1581using var document = JsonDocument.Parse(message.Response.ContentStream);
1583return Response.FromValue(value, message.Response);
1586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SubscriptionsRestOperations.cs (32)
67switch (message.Response.Status)
72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
74return Response.FromValue(value, message.Response);
77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
94switch (message.Response.Status)
99using var document = JsonDocument.Parse(message.Response.ContentStream);
101return Response.FromValue(value, message.Response);
104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
163switch (message.Response.Status)
168using var document = JsonDocument.Parse(message.Response.ContentStream);
170return Response.FromValue(value, message.Response);
173throw _clientDiagnostics.CreateRequestFailedException(message.Response);
197switch (message.Response.Status)
202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
204return Response.FromValue(value, message.Response);
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
217switch (message.Response.Status)
222using var document = JsonDocument.Parse(message.Response.ContentStream);
224return Response.FromValue(value, message.Response);
227throw _clientDiagnostics.CreateRequestFailedException(message.Response);
257switch (message.Response.Status)
262using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
264return Response.FromValue(value, message.Response);
267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
284switch (message.Response.Status)
289using var document = JsonDocument.Parse(message.Response.ContentStream);
291return Response.FromValue(value, message.Response);
294throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TagsRestOperations.cs (74)
83switch (message.Response.Status)
87return message.Response;
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111switch (message.Response.Status)
115return message.Response;
117throw _clientDiagnostics.CreateRequestFailedException(message.Response);
158switch (message.Response.Status)
164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
166return Response.FromValue(value, message.Response);
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
197using var document = JsonDocument.Parse(message.Response.ContentStream);
199return Response.FromValue(value, message.Response);
202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
236switch (message.Response.Status)
242using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
244return Response.FromValue(value, message.Response);
247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
264switch (message.Response.Status)
270using var document = JsonDocument.Parse(message.Response.ContentStream);
272return Response.FromValue(value, message.Response);
275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
313return message.Response;
315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
336return message.Response;
338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
364switch (message.Response.Status)
369using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
371return Response.FromValue(value, message.Response);
374throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
436switch (message.Response.Status)
441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
443return Response.FromValue(value, message.Response);
446throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
468switch (message.Response.Status)
473using var document = JsonDocument.Parse(message.Response.ContentStream);
475return Response.FromValue(value, message.Response);
478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
520switch (message.Response.Status)
525using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
527return Response.FromValue(value, message.Response);
530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
552switch (message.Response.Status)
557using var document = JsonDocument.Parse(message.Response.ContentStream);
559return Response.FromValue(value, message.Response);
562throw _clientDiagnostics.CreateRequestFailedException(message.Response);
595switch (message.Response.Status)
600using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
602return Response.FromValue(value, message.Response);
605throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
622switch (message.Response.Status)
627using var document = JsonDocument.Parse(message.Response.ContentStream);
629return Response.FromValue(value, message.Response);
632throw _clientDiagnostics.CreateRequestFailedException(message.Response);
665switch (message.Response.Status)
668return message.Response;
670throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
687switch (message.Response.Status)
690return message.Response;
692throw _clientDiagnostics.CreateRequestFailedException(message.Response);
722switch (message.Response.Status)
727using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
729return Response.FromValue(value, message.Response);
732throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
749switch (message.Response.Status)
754using var document = JsonDocument.Parse(message.Response.ContentStream);
756return Response.FromValue(value, message.Response);
759throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Sql (3292)
Generated\BackupShortTermRetentionPoliciesRestOperations.cs (36)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
310return message.Response;
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
345switch (message.Response.Status)
349return message.Response;
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
534switch (message.Response.Status)
539using var document = JsonDocument.Parse(message.Response.ContentStream);
541return Response.FromValue(value, message.Response);
544throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseBlobAuditingPoliciesRestOperations.cs (32)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
136return Response.FromValue(value, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
198switch (message.Response.Status)
204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
206return Response.FromValue(value, message.Response);
209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
247using var document = JsonDocument.Parse(message.Response.ContentStream);
249return Response.FromValue(value, message.Response);
252throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
338switch (message.Response.Status)
343using var document = JsonDocument.Parse(message.Response.ContentStream);
345return Response.FromValue(value, message.Response);
348throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
400return Response.FromValue(value, message.Response);
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
435switch (message.Response.Status)
440using var document = JsonDocument.Parse(message.Response.ContentStream);
442return Response.FromValue(value, message.Response);
445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabasesRestOperations.cs (122)
93switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
130return message.Response;
132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
192switch (message.Response.Status)
196return message.Response;
198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
231switch (message.Response.Status)
235return message.Response;
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
295switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
333switch (message.Response.Status)
337return message.Response;
339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
394switch (message.Response.Status)
399using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
401return Response.FromValue(value, message.Response);
404throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
436switch (message.Response.Status)
441using var document = JsonDocument.Parse(message.Response.ContentStream);
443return Response.FromValue(value, message.Response);
446throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
502return Response.FromValue(value, message.Response);
505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
532switch (message.Response.Status)
537using var document = JsonDocument.Parse(message.Response.ContentStream);
539return Response.FromValue(value, message.Response);
542throw _clientDiagnostics.CreateRequestFailedException(message.Response);
584switch (message.Response.Status)
589using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
591return Response.FromValue(value, message.Response);
594throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
616switch (message.Response.Status)
621using var document = JsonDocument.Parse(message.Response.ContentStream);
623return Response.FromValue(value, message.Response);
626throw _clientDiagnostics.CreateRequestFailedException(message.Response);
674switch (message.Response.Status)
679using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
681return Response.FromValue(value, message.Response);
684throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
711switch (message.Response.Status)
716using var document = JsonDocument.Parse(message.Response.ContentStream);
718return Response.FromValue(value, message.Response);
721throw _clientDiagnostics.CreateRequestFailedException(message.Response);
778switch (message.Response.Status)
783return message.Response;
785throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
817switch (message.Response.Status)
822return message.Response;
824throw _clientDiagnostics.CreateRequestFailedException(message.Response);
871switch (message.Response.Status)
876return message.Response;
878throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
905switch (message.Response.Status)
910return message.Response;
912throw _clientDiagnostics.CreateRequestFailedException(message.Response);
969switch (message.Response.Status)
973return message.Response;
975throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1007switch (message.Response.Status)
1011return message.Response;
1013throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1062switch (message.Response.Status)
1067using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1069return Response.FromValue(value, message.Response);
1072throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1099switch (message.Response.Status)
1104using var document = JsonDocument.Parse(message.Response.ContentStream);
1106return Response.FromValue(value, message.Response);
1109throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1158switch (message.Response.Status)
1162return message.Response;
1164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1191switch (message.Response.Status)
1195return message.Response;
1197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1246switch (message.Response.Status)
1250return message.Response;
1252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1279switch (message.Response.Status)
1283return message.Response;
1285throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1333switch (message.Response.Status)
1337return message.Response;
1339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1366switch (message.Response.Status)
1370return message.Response;
1372throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1429switch (message.Response.Status)
1432return message.Response;
1434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1466switch (message.Response.Status)
1469return message.Response;
1471throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1524switch (message.Response.Status)
1528return message.Response;
1530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1558switch (message.Response.Status)
1562return message.Response;
1564throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1604switch (message.Response.Status)
1609using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1611return Response.FromValue(value, message.Response);
1614throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1641switch (message.Response.Status)
1646using var document = JsonDocument.Parse(message.Response.ContentStream);
1648return Response.FromValue(value, message.Response);
1651throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1696switch (message.Response.Status)
1701using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1703return Response.FromValue(value, message.Response);
1706throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1738switch (message.Response.Status)
1743using var document = JsonDocument.Parse(message.Response.ContentStream);
1745return Response.FromValue(value, message.Response);
1748throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseVulnerabilityAssessmentScansRestOperations.cs (38)
94switch (message.Response.Status)
99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
101return Response.FromValue(value, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
132switch (message.Response.Status)
137using var document = JsonDocument.Parse(message.Response.ContentStream);
139return Response.FromValue(value, message.Response);
142throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
207return Response.FromValue(value, message.Response);
210throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
315return message.Response;
317throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
350switch (message.Response.Status)
354return message.Response;
356throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
423return Response.FromValue(value, message.Response);
426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
516switch (message.Response.Status)
521using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
523return Response.FromValue(value, message.Response);
526throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseVulnerabilityAssessmentsRestOperations.cs (38)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
309return message.Response;
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
339switch (message.Response.Status)
342return message.Response;
344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
400return Response.FromValue(value, message.Response);
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
430switch (message.Response.Status)
435using var document = JsonDocument.Parse(message.Response.ContentStream);
437return Response.FromValue(value, message.Response);
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
527switch (message.Response.Status)
532using var document = JsonDocument.Parse(message.Response.ContentStream);
534return Response.FromValue(value, message.Response);
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ElasticPoolsRestOperations.cs (64)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
198switch (message.Response.Status)
203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
205return Response.FromValue(value, message.Response);
208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
292switch (message.Response.Status)
297using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
299return Response.FromValue(value, message.Response);
302throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
325switch (message.Response.Status)
330using var document = JsonDocument.Parse(message.Response.ContentStream);
332return Response.FromValue(value, message.Response);
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
383switch (message.Response.Status)
388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
390return Response.FromValue(value, message.Response);
393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
420switch (message.Response.Status)
425using var document = JsonDocument.Parse(message.Response.ContentStream);
427return Response.FromValue(value, message.Response);
430throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492return message.Response;
494throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531return message.Response;
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
580switch (message.Response.Status)
585return message.Response;
587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
614switch (message.Response.Status)
619return message.Response;
621throw _clientDiagnostics.CreateRequestFailedException(message.Response);
678switch (message.Response.Status)
682return message.Response;
684throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
716switch (message.Response.Status)
720return message.Response;
722throw _clientDiagnostics.CreateRequestFailedException(message.Response);
770switch (message.Response.Status)
774return message.Response;
776throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
803switch (message.Response.Status)
807return message.Response;
809throw _clientDiagnostics.CreateRequestFailedException(message.Response);
850switch (message.Response.Status)
855using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
857return Response.FromValue(value, message.Response);
860throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
888switch (message.Response.Status)
893using var document = JsonDocument.Parse(message.Response.ContentStream);
895return Response.FromValue(value, message.Response);
898throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EncryptionProtectorsRestOperations.cs (36)
86switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
195switch (message.Response.Status)
200using var document = JsonDocument.Parse(message.Response.ContentStream);
202return Response.FromValue(value, message.Response);
205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
249switch (message.Response.Status)
254using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
256return Response.FromValue(value, message.Response);
259throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
282switch (message.Response.Status)
287using var document = JsonDocument.Parse(message.Response.ContentStream);
289return Response.FromValue(value, message.Response);
292throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
349return message.Response;
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
383return message.Response;
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return Response.FromValue(value, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
462switch (message.Response.Status)
467using var document = JsonDocument.Parse(message.Response.ContentStream);
469return Response.FromValue(value, message.Response);
472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExtendedDatabaseBlobAuditingPoliciesRestOperations.cs (32)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
136return Response.FromValue(value, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
198switch (message.Response.Status)
204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
206return Response.FromValue(value, message.Response);
209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
247using var document = JsonDocument.Parse(message.Response.ContentStream);
249return Response.FromValue(value, message.Response);
252throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
338switch (message.Response.Status)
343using var document = JsonDocument.Parse(message.Response.ContentStream);
345return Response.FromValue(value, message.Response);
348throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
400return Response.FromValue(value, message.Response);
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
435switch (message.Response.Status)
440using var document = JsonDocument.Parse(message.Response.ContentStream);
442return Response.FromValue(value, message.Response);
445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExtendedServerBlobAuditingPoliciesRestOperations.cs (30)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
122using var document = JsonDocument.Parse(message.Response.ContentStream);
124return Response.FromValue(value, message.Response);
127throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
183return message.Response;
185throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
212switch (message.Response.Status)
216return message.Response;
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
267return Response.FromValue(value, message.Response);
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297using var document = JsonDocument.Parse(message.Response.ContentStream);
299return Response.FromValue(value, message.Response);
302throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
349return Response.FromValue(value, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return Response.FromValue(value, message.Response);
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FailoverGroupsRestOperations.cs (54)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return message.Response;
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238return message.Response;
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292return message.Response;
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
326return message.Response;
328throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385switch (message.Response.Status)
389return message.Response;
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
423switch (message.Response.Status)
427return message.Response;
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
478return Response.FromValue(value, message.Response);
481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503switch (message.Response.Status)
508using var document = JsonDocument.Parse(message.Response.ContentStream);
510return Response.FromValue(value, message.Response);
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
595switch (message.Response.Status)
599return message.Response;
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
650switch (message.Response.Status)
654return message.Response;
656throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
683switch (message.Response.Status)
687return message.Response;
689throw _clientDiagnostics.CreateRequestFailedException(message.Response);
729switch (message.Response.Status)
734using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
736return Response.FromValue(value, message.Response);
739throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
766switch (message.Response.Status)
771using var document = JsonDocument.Parse(message.Response.ContentStream);
773return Response.FromValue(value, message.Response);
776throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FirewallRulesRestOperations.cs (30)
99switch (message.Response.Status)
105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
107return Response.FromValue(value, message.Response);
110throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
142switch (message.Response.Status)
148using var document = JsonDocument.Parse(message.Response.ContentStream);
150return Response.FromValue(value, message.Response);
153throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
204return message.Response;
206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
237return message.Response;
239throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
294return Response.FromValue(value, message.Response);
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
324switch (message.Response.Status)
329using var document = JsonDocument.Parse(message.Response.ContentStream);
331return Response.FromValue(value, message.Response);
334throw _clientDiagnostics.CreateRequestFailedException(message.Response);
376switch (message.Response.Status)
381using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
383return Response.FromValue(value, message.Response);
386throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
408switch (message.Response.Status)
413using var document = JsonDocument.Parse(message.Response.ContentStream);
415return Response.FromValue(value, message.Response);
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GeoBackupPoliciesRestOperations.cs (24)
102switch (message.Response.Status)
108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
110return Response.FromValue(value, message.Response);
113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
146switch (message.Response.Status)
152using var document = JsonDocument.Parse(message.Response.ContentStream);
154return Response.FromValue(value, message.Response);
157throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
246switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
305switch (message.Response.Status)
310using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
312return Response.FromValue(value, message.Response);
315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
342switch (message.Response.Status)
347using var document = JsonDocument.Parse(message.Response.ContentStream);
349return Response.FromValue(value, message.Response);
352throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\InstanceFailoverGroupsRestOperations.cs (48)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return message.Response;
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238return message.Response;
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292return message.Response;
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
326return message.Response;
328throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
377return Response.FromValue(value, message.Response);
380throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
407using var document = JsonDocument.Parse(message.Response.ContentStream);
409return Response.FromValue(value, message.Response);
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
465return message.Response;
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
498return message.Response;
500throw _clientDiagnostics.CreateRequestFailedException(message.Response);
549switch (message.Response.Status)
553return message.Response;
555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
582switch (message.Response.Status)
586return message.Response;
588throw _clientDiagnostics.CreateRequestFailedException(message.Response);
628switch (message.Response.Status)
633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
635return Response.FromValue(value, message.Response);
638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
665switch (message.Response.Status)
670using var document = JsonDocument.Parse(message.Response.ContentStream);
672return Response.FromValue(value, message.Response);
675throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\InstancePoolsRestOperations.cs (58)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
180return message.Response;
182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
214return message.Response;
216throw _clientDiagnostics.CreateRequestFailedException(message.Response);
256switch (message.Response.Status)
261return message.Response;
263throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
290return message.Response;
292throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
346return message.Response;
348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
379return message.Response;
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
416switch (message.Response.Status)
421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
423return Response.FromValue(value, message.Response);
426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
443switch (message.Response.Status)
448using var document = JsonDocument.Parse(message.Response.ContentStream);
450return Response.FromValue(value, message.Response);
453throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
486return Response.FromValue(value, message.Response);
489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
499switch (message.Response.Status)
504using var document = JsonDocument.Parse(message.Response.ContentStream);
506return Response.FromValue(value, message.Response);
509throw _clientDiagnostics.CreateRequestFailedException(message.Response);
544switch (message.Response.Status)
549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
551return Response.FromValue(value, message.Response);
554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
576switch (message.Response.Status)
581using var document = JsonDocument.Parse(message.Response.ContentStream);
583return Response.FromValue(value, message.Response);
586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
616switch (message.Response.Status)
621using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
623return Response.FromValue(value, message.Response);
626throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
643switch (message.Response.Status)
648using var document = JsonDocument.Parse(message.Response.ContentStream);
650return Response.FromValue(value, message.Response);
653throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobAgentsRestOperations.cs (42)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283return message.Response;
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
317switch (message.Response.Status)
322return message.Response;
324throw _clientDiagnostics.CreateRequestFailedException(message.Response);
371switch (message.Response.Status)
376return message.Response;
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
405switch (message.Response.Status)
410return message.Response;
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
473return message.Response;
475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
507switch (message.Response.Status)
511return message.Response;
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
553switch (message.Response.Status)
558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
560return Response.FromValue(value, message.Response);
563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
590switch (message.Response.Status)
595using var document = JsonDocument.Parse(message.Response.ContentStream);
597return Response.FromValue(value, message.Response);
600throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobCredentialsRestOperations.cs (38)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
193switch (message.Response.Status)
198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
200return Response.FromValue(value, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
317return Response.FromValue(value, message.Response);
320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
363using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
426return message.Response;
428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
464return message.Response;
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
511switch (message.Response.Status)
516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
518return Response.FromValue(value, message.Response);
521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
553switch (message.Response.Status)
558using var document = JsonDocument.Parse(message.Response.ContentStream);
560return Response.FromValue(value, message.Response);
563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobExecutionsRestOperations.cs (58)
126switch (message.Response.Status)
131using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
133return Response.FromValue(value, message.Response);
136throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
170switch (message.Response.Status)
175using var document = JsonDocument.Parse(message.Response.ContentStream);
177return Response.FromValue(value, message.Response);
180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
238switch (message.Response.Status)
241return message.Response;
243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
276switch (message.Response.Status)
279return message.Response;
281throw _clientDiagnostics.CreateRequestFailedException(message.Response);
337switch (message.Response.Status)
341return message.Response;
343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
379return message.Response;
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
472switch (message.Response.Status)
477using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
479return Response.FromValue(value, message.Response);
482throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
521switch (message.Response.Status)
526using var document = JsonDocument.Parse(message.Response.ContentStream);
528return Response.FromValue(value, message.Response);
531throw _clientDiagnostics.CreateRequestFailedException(message.Response);
589switch (message.Response.Status)
594using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
596return Response.FromValue(value, message.Response);
599throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
632switch (message.Response.Status)
637using var document = JsonDocument.Parse(message.Response.ContentStream);
639return Response.FromValue(value, message.Response);
642throw _clientDiagnostics.CreateRequestFailedException(message.Response);
700switch (message.Response.Status)
705return message.Response;
707throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
740switch (message.Response.Status)
745return message.Response;
747throw _clientDiagnostics.CreateRequestFailedException(message.Response);
799switch (message.Response.Status)
804using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
806return Response.FromValue(value, message.Response);
809throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
848switch (message.Response.Status)
853using var document = JsonDocument.Parse(message.Response.ContentStream);
855return Response.FromValue(value, message.Response);
858throw _clientDiagnostics.CreateRequestFailedException(message.Response);
915switch (message.Response.Status)
920using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
922return Response.FromValue(value, message.Response);
925throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
969switch (message.Response.Status)
974using var document = JsonDocument.Parse(message.Response.ContentStream);
976return Response.FromValue(value, message.Response);
979throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestOperations.cs (38)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
193switch (message.Response.Status)
198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
200return Response.FromValue(value, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
317return Response.FromValue(value, message.Response);
320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
363using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
426return message.Response;
428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
464return message.Response;
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
511switch (message.Response.Status)
516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
518return Response.FromValue(value, message.Response);
521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
553switch (message.Response.Status)
558using var document = JsonDocument.Parse(message.Response.ContentStream);
560return Response.FromValue(value, message.Response);
563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobStepExecutionsRestOperations.cs (24)
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
186switch (message.Response.Status)
191using var document = JsonDocument.Parse(message.Response.ContentStream);
193return Response.FromValue(value, message.Response);
196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
309switch (message.Response.Status)
314using var document = JsonDocument.Parse(message.Response.ContentStream);
316return Response.FromValue(value, message.Response);
319throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
384return Response.FromValue(value, message.Response);
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
432switch (message.Response.Status)
437using var document = JsonDocument.Parse(message.Response.ContentStream);
439return Response.FromValue(value, message.Response);
442throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobStepsRestOperations.cs (62)
101switch (message.Response.Status)
106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
108return Response.FromValue(value, message.Response);
111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
149using var document = JsonDocument.Parse(message.Response.ContentStream);
151return Response.FromValue(value, message.Response);
154throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
226return Response.FromValue(value, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
267switch (message.Response.Status)
272using var document = JsonDocument.Parse(message.Response.ContentStream);
274return Response.FromValue(value, message.Response);
277throw _clientDiagnostics.CreateRequestFailedException(message.Response);
333switch (message.Response.Status)
338using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
340return Response.FromValue(value, message.Response);
343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
380using var document = JsonDocument.Parse(message.Response.ContentStream);
382return Response.FromValue(value, message.Response);
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
447switch (message.Response.Status)
452using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
454return Response.FromValue(value, message.Response);
457throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
575switch (message.Response.Status)
581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
583return Response.FromValue(value, message.Response);
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
628switch (message.Response.Status)
634using var document = JsonDocument.Parse(message.Response.ContentStream);
636return Response.FromValue(value, message.Response);
639throw _clientDiagnostics.CreateRequestFailedException(message.Response);
700switch (message.Response.Status)
704return message.Response;
706throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
743switch (message.Response.Status)
747return message.Response;
749throw _clientDiagnostics.CreateRequestFailedException(message.Response);
800switch (message.Response.Status)
805using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
807return Response.FromValue(value, message.Response);
810throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
848switch (message.Response.Status)
853using var document = JsonDocument.Parse(message.Response.ContentStream);
855return Response.FromValue(value, message.Response);
858throw _clientDiagnostics.CreateRequestFailedException(message.Response);
908switch (message.Response.Status)
913using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
915return Response.FromValue(value, message.Response);
918throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
955switch (message.Response.Status)
960using var document = JsonDocument.Parse(message.Response.ContentStream);
962return Response.FromValue(value, message.Response);
965throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobTargetExecutionsRestOperations.cs (40)
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
186switch (message.Response.Status)
191using var document = JsonDocument.Parse(message.Response.ContentStream);
193return Response.FromValue(value, message.Response);
196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
297switch (message.Response.Status)
302using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
304return Response.FromValue(value, message.Response);
307throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
352switch (message.Response.Status)
357using var document = JsonDocument.Parse(message.Response.ContentStream);
359return Response.FromValue(value, message.Response);
362throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
479switch (message.Response.Status)
484using var document = JsonDocument.Parse(message.Response.ContentStream);
486return Response.FromValue(value, message.Response);
489throw _clientDiagnostics.CreateRequestFailedException(message.Response);
547switch (message.Response.Status)
552using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
554return Response.FromValue(value, message.Response);
557throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
602switch (message.Response.Status)
607using var document = JsonDocument.Parse(message.Response.ContentStream);
609return Response.FromValue(value, message.Response);
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
675switch (message.Response.Status)
680using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
682return Response.FromValue(value, message.Response);
685throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
735switch (message.Response.Status)
740using var document = JsonDocument.Parse(message.Response.ContentStream);
742return Response.FromValue(value, message.Response);
745throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobTargetGroupsRestOperations.cs (38)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
193switch (message.Response.Status)
198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
200return Response.FromValue(value, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
317return Response.FromValue(value, message.Response);
320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
363using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
426return message.Response;
428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
464return message.Response;
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
511switch (message.Response.Status)
516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
518return Response.FromValue(value, message.Response);
521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
553switch (message.Response.Status)
558using var document = JsonDocument.Parse(message.Response.ContentStream);
560return Response.FromValue(value, message.Response);
563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobVersionsRestOperations.cs (24)
98switch (message.Response.Status)
103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
105return Response.FromValue(value, message.Response);
108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
140switch (message.Response.Status)
145using var document = JsonDocument.Parse(message.Response.ContentStream);
147return Response.FromValue(value, message.Response);
150throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251switch (message.Response.Status)
256using var document = JsonDocument.Parse(message.Response.ContentStream);
258return Response.FromValue(value, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
316using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
318return Response.FromValue(value, message.Response);
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
358switch (message.Response.Status)
363using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LongTermRetentionBackupsRestOperations.cs (124)
104switch (message.Response.Status)
109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
111return Response.FromValue(value, message.Response);
114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
226return message.Response;
228throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
265switch (message.Response.Status)
269return message.Response;
271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
337switch (message.Response.Status)
342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
344return Response.FromValue(value, message.Response);
347throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
381switch (message.Response.Status)
386using var document = JsonDocument.Parse(message.Response.ContentStream);
388return Response.FromValue(value, message.Response);
391throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
477switch (message.Response.Status)
482using var document = JsonDocument.Parse(message.Response.ContentStream);
484return Response.FromValue(value, message.Response);
487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
546switch (message.Response.Status)
551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
553return Response.FromValue(value, message.Response);
556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
585switch (message.Response.Status)
590using var document = JsonDocument.Parse(message.Response.ContentStream);
592return Response.FromValue(value, message.Response);
595throw _clientDiagnostics.CreateRequestFailedException(message.Response);
650switch (message.Response.Status)
655using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
657return Response.FromValue(value, message.Response);
660throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
692switch (message.Response.Status)
697using var document = JsonDocument.Parse(message.Response.ContentStream);
699return Response.FromValue(value, message.Response);
702throw _clientDiagnostics.CreateRequestFailedException(message.Response);
756switch (message.Response.Status)
760return message.Response;
762throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
794switch (message.Response.Status)
798return message.Response;
800throw _clientDiagnostics.CreateRequestFailedException(message.Response);
859switch (message.Response.Status)
864using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
866return Response.FromValue(value, message.Response);
869throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
898switch (message.Response.Status)
903using var document = JsonDocument.Parse(message.Response.ContentStream);
905return Response.FromValue(value, message.Response);
908throw _clientDiagnostics.CreateRequestFailedException(message.Response);
953switch (message.Response.Status)
958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
960return Response.FromValue(value, message.Response);
963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
982switch (message.Response.Status)
987using var document = JsonDocument.Parse(message.Response.ContentStream);
989return Response.FromValue(value, message.Response);
992throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1044switch (message.Response.Status)
1049using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1051return Response.FromValue(value, message.Response);
1054throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1078switch (message.Response.Status)
1083using var document = JsonDocument.Parse(message.Response.ContentStream);
1085return Response.FromValue(value, message.Response);
1088throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1140switch (message.Response.Status)
1145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1147return Response.FromValue(value, message.Response);
1150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1189switch (message.Response.Status)
1194using var document = JsonDocument.Parse(message.Response.ContentStream);
1196return Response.FromValue(value, message.Response);
1199throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1241switch (message.Response.Status)
1246using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1248return Response.FromValue(value, message.Response);
1251throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1280switch (message.Response.Status)
1285using var document = JsonDocument.Parse(message.Response.ContentStream);
1287return Response.FromValue(value, message.Response);
1290throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1337switch (message.Response.Status)
1342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1344return Response.FromValue(value, message.Response);
1347throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1381switch (message.Response.Status)
1386using var document = JsonDocument.Parse(message.Response.ContentStream);
1388return Response.FromValue(value, message.Response);
1391throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1438switch (message.Response.Status)
1443using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1445return Response.FromValue(value, message.Response);
1448throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1482switch (message.Response.Status)
1487using var document = JsonDocument.Parse(message.Response.ContentStream);
1489return Response.FromValue(value, message.Response);
1492throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1529switch (message.Response.Status)
1534using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1536return Response.FromValue(value, message.Response);
1539throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1563switch (message.Response.Status)
1568using var document = JsonDocument.Parse(message.Response.ContentStream);
1570return Response.FromValue(value, message.Response);
1573throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1615switch (message.Response.Status)
1620using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1622return Response.FromValue(value, message.Response);
1625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1654switch (message.Response.Status)
1659using var document = JsonDocument.Parse(message.Response.ContentStream);
1661return Response.FromValue(value, message.Response);
1664throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LongTermRetentionManagedInstanceBackupsRestOperations.cs (124)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
207return message.Response;
209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
245return message.Response;
247throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
311using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
313return Response.FromValue(value, message.Response);
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
345switch (message.Response.Status)
350using var document = JsonDocument.Parse(message.Response.ContentStream);
352return Response.FromValue(value, message.Response);
355throw _clientDiagnostics.CreateRequestFailedException(message.Response);
407switch (message.Response.Status)
412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
414return Response.FromValue(value, message.Response);
417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
441switch (message.Response.Status)
446using var document = JsonDocument.Parse(message.Response.ContentStream);
448return Response.FromValue(value, message.Response);
451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
597switch (message.Response.Status)
602using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
604return Response.FromValue(value, message.Response);
607throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
644switch (message.Response.Status)
649using var document = JsonDocument.Parse(message.Response.ContentStream);
651return Response.FromValue(value, message.Response);
654throw _clientDiagnostics.CreateRequestFailedException(message.Response);
715switch (message.Response.Status)
719return message.Response;
721throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
758switch (message.Response.Status)
762return message.Response;
764throw _clientDiagnostics.CreateRequestFailedException(message.Response);
830switch (message.Response.Status)
835using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
837return Response.FromValue(value, message.Response);
840throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
874switch (message.Response.Status)
879using var document = JsonDocument.Parse(message.Response.ContentStream);
881return Response.FromValue(value, message.Response);
884throw _clientDiagnostics.CreateRequestFailedException(message.Response);
943switch (message.Response.Status)
948using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
950return Response.FromValue(value, message.Response);
953throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
982switch (message.Response.Status)
987using var document = JsonDocument.Parse(message.Response.ContentStream);
989return Response.FromValue(value, message.Response);
992throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1044switch (message.Response.Status)
1049using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1051return Response.FromValue(value, message.Response);
1054throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1078switch (message.Response.Status)
1083using var document = JsonDocument.Parse(message.Response.ContentStream);
1085return Response.FromValue(value, message.Response);
1088throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1135switch (message.Response.Status)
1140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1142return Response.FromValue(value, message.Response);
1145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1179switch (message.Response.Status)
1184using var document = JsonDocument.Parse(message.Response.ContentStream);
1186return Response.FromValue(value, message.Response);
1189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1231switch (message.Response.Status)
1236using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1238return Response.FromValue(value, message.Response);
1241throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1270switch (message.Response.Status)
1275using var document = JsonDocument.Parse(message.Response.ContentStream);
1277return Response.FromValue(value, message.Response);
1280throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1317switch (message.Response.Status)
1322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1324return Response.FromValue(value, message.Response);
1327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1351switch (message.Response.Status)
1356using var document = JsonDocument.Parse(message.Response.ContentStream);
1358return Response.FromValue(value, message.Response);
1361throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1413switch (message.Response.Status)
1418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1420return Response.FromValue(value, message.Response);
1423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1462switch (message.Response.Status)
1467using var document = JsonDocument.Parse(message.Response.ContentStream);
1469return Response.FromValue(value, message.Response);
1472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1519switch (message.Response.Status)
1524using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1526return Response.FromValue(value, message.Response);
1529throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1563switch (message.Response.Status)
1568using var document = JsonDocument.Parse(message.Response.ContentStream);
1570return Response.FromValue(value, message.Response);
1573throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1615switch (message.Response.Status)
1620using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1622return Response.FromValue(value, message.Response);
1625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1654switch (message.Response.Status)
1659using var document = JsonDocument.Parse(message.Response.ContentStream);
1661return Response.FromValue(value, message.Response);
1664throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedBackupShortTermRetentionPoliciesRestOperations.cs (36)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
310return message.Response;
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
345switch (message.Response.Status)
349return message.Response;
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
534switch (message.Response.Status)
539using var document = JsonDocument.Parse(message.Response.ContentStream);
541return Response.FromValue(value, message.Response);
544throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabaseSecurityAlertPoliciesRestOperations.cs (32)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
305switch (message.Response.Status)
310using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
312return Response.FromValue(value, message.Response);
315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
342switch (message.Response.Status)
347using var document = JsonDocument.Parse(message.Response.ContentStream);
349return Response.FromValue(value, message.Response);
352throw _clientDiagnostics.CreateRequestFailedException(message.Response);
397switch (message.Response.Status)
402using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
404return Response.FromValue(value, message.Response);
407throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
439switch (message.Response.Status)
444using var document = JsonDocument.Parse(message.Response.ContentStream);
446return Response.FromValue(value, message.Response);
449throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabaseSensitivityLabelsRestOperations.cs (66)
114switch (message.Response.Status)
119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
121return Response.FromValue(value, message.Response);
124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
167switch (message.Response.Status)
172using var document = JsonDocument.Parse(message.Response.ContentStream);
174return Response.FromValue(value, message.Response);
177throw _clientDiagnostics.CreateRequestFailedException(message.Response);
257switch (message.Response.Status)
263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
265return Response.FromValue(value, message.Response);
268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
321using var document = JsonDocument.Parse(message.Response.ContentStream);
323return Response.FromValue(value, message.Response);
326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
396switch (message.Response.Status)
399return message.Response;
401throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
443switch (message.Response.Status)
446return message.Response;
448throw _clientDiagnostics.CreateRequestFailedException(message.Response);
519switch (message.Response.Status)
522return message.Response;
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
566switch (message.Response.Status)
569return message.Response;
571throw _clientDiagnostics.CreateRequestFailedException(message.Response);
642switch (message.Response.Status)
645return message.Response;
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
689switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
748switch (message.Response.Status)
753using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
755return Response.FromValue(value, message.Response);
758throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
786switch (message.Response.Status)
791using var document = JsonDocument.Parse(message.Response.ContentStream);
793return Response.FromValue(value, message.Response);
796throw _clientDiagnostics.CreateRequestFailedException(message.Response);
860switch (message.Response.Status)
865using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
867return Response.FromValue(value, message.Response);
870throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
900switch (message.Response.Status)
905using var document = JsonDocument.Parse(message.Response.ContentStream);
907return Response.FromValue(value, message.Response);
910throw _clientDiagnostics.CreateRequestFailedException(message.Response);
956switch (message.Response.Status)
961using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
963return Response.FromValue(value, message.Response);
966throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
999switch (message.Response.Status)
1004using var document = JsonDocument.Parse(message.Response.ContentStream);
1006return Response.FromValue(value, message.Response);
1009throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1057switch (message.Response.Status)
1062using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1064return Response.FromValue(value, message.Response);
1067throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1102switch (message.Response.Status)
1107using var document = JsonDocument.Parse(message.Response.ContentStream);
1109return Response.FromValue(value, message.Response);
1112throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabasesRestOperations.cs (64)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283return message.Response;
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
317switch (message.Response.Status)
322return message.Response;
324throw _clientDiagnostics.CreateRequestFailedException(message.Response);
371switch (message.Response.Status)
376return message.Response;
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
405switch (message.Response.Status)
410return message.Response;
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
473return message.Response;
475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
507switch (message.Response.Status)
511return message.Response;
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
555switch (message.Response.Status)
560using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
562return Response.FromValue(value, message.Response);
565throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
587switch (message.Response.Status)
592using var document = JsonDocument.Parse(message.Response.ContentStream);
594return Response.FromValue(value, message.Response);
597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
654switch (message.Response.Status)
658return message.Response;
660throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
692switch (message.Response.Status)
696return message.Response;
698throw _clientDiagnostics.CreateRequestFailedException(message.Response);
738switch (message.Response.Status)
743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
745return Response.FromValue(value, message.Response);
748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
775switch (message.Response.Status)
780using var document = JsonDocument.Parse(message.Response.ContentStream);
782return Response.FromValue(value, message.Response);
785throw _clientDiagnostics.CreateRequestFailedException(message.Response);
825switch (message.Response.Status)
830using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
832return Response.FromValue(value, message.Response);
835throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
862switch (message.Response.Status)
867using var document = JsonDocument.Parse(message.Response.ContentStream);
869return Response.FromValue(value, message.Response);
872throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabaseVulnerabilityAssessmentScansRestOperations.cs (38)
94switch (message.Response.Status)
99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
101return Response.FromValue(value, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
132switch (message.Response.Status)
137using var document = JsonDocument.Parse(message.Response.ContentStream);
139return Response.FromValue(value, message.Response);
142throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
207return Response.FromValue(value, message.Response);
210throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
315return message.Response;
317throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
350switch (message.Response.Status)
354return message.Response;
356throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
423return Response.FromValue(value, message.Response);
426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
516switch (message.Response.Status)
521using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
523return Response.FromValue(value, message.Response);
526throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabaseVulnerabilityAssessmentsRestOperations.cs (38)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
309return message.Response;
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
339switch (message.Response.Status)
342return message.Response;
344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
400return Response.FromValue(value, message.Response);
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
430switch (message.Response.Status)
435using var document = JsonDocument.Parse(message.Response.ContentStream);
437return Response.FromValue(value, message.Response);
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
527switch (message.Response.Status)
532using var document = JsonDocument.Parse(message.Response.ContentStream);
534return Response.FromValue(value, message.Response);
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceAdministratorsRestOperations.cs (36)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
169switch (message.Response.Status)
174using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
176return Response.FromValue(value, message.Response);
179throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
201switch (message.Response.Status)
206using var document = JsonDocument.Parse(message.Response.ContentStream);
208return Response.FromValue(value, message.Response);
211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
263switch (message.Response.Status)
268return message.Response;
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
297switch (message.Response.Status)
302return message.Response;
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
350return message.Response;
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
374switch (message.Response.Status)
378return message.Response;
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
457switch (message.Response.Status)
462using var document = JsonDocument.Parse(message.Response.ContentStream);
464return Response.FromValue(value, message.Response);
467throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceEncryptionProtectorsRestOperations.cs (36)
86switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
195switch (message.Response.Status)
200using var document = JsonDocument.Parse(message.Response.ContentStream);
202return Response.FromValue(value, message.Response);
205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
249switch (message.Response.Status)
254using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
256return Response.FromValue(value, message.Response);
259throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
282switch (message.Response.Status)
287using var document = JsonDocument.Parse(message.Response.ContentStream);
289return Response.FromValue(value, message.Response);
292throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
349return message.Response;
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
383return message.Response;
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return Response.FromValue(value, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
462switch (message.Response.Status)
467using var document = JsonDocument.Parse(message.Response.ContentStream);
469return Response.FromValue(value, message.Response);
472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceKeysRestOperations.cs (36)
89switch (message.Response.Status)
94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
96return Response.FromValue(value, message.Response);
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
122switch (message.Response.Status)
127using var document = JsonDocument.Parse(message.Response.ContentStream);
129return Response.FromValue(value, message.Response);
132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
180switch (message.Response.Status)
185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
187return Response.FromValue(value, message.Response);
190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
217switch (message.Response.Status)
222using var document = JsonDocument.Parse(message.Response.ContentStream);
224return Response.FromValue(value, message.Response);
227throw _clientDiagnostics.CreateRequestFailedException(message.Response);
284switch (message.Response.Status)
289return message.Response;
291throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
328return message.Response;
330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382return message.Response;
384throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
411switch (message.Response.Status)
416return message.Response;
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
459switch (message.Response.Status)
464using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
466return Response.FromValue(value, message.Response);
469throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
497switch (message.Response.Status)
502using var document = JsonDocument.Parse(message.Response.ContentStream);
504return Response.FromValue(value, message.Response);
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceLongTermRetentionPoliciesRestOperations.cs (30)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
295switch (message.Response.Status)
300using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
302return Response.FromValue(value, message.Response);
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
337using var document = JsonDocument.Parse(message.Response.ContentStream);
339return Response.FromValue(value, message.Response);
342throw _clientDiagnostics.CreateRequestFailedException(message.Response);
387switch (message.Response.Status)
392using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
394return Response.FromValue(value, message.Response);
397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
429switch (message.Response.Status)
434using var document = JsonDocument.Parse(message.Response.ContentStream);
436return Response.FromValue(value, message.Response);
439throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceRestOperations.cs (30)
86switch (message.Response.Status)
89return message.Response;
91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
161switch (message.Response.Status)
166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
168return Response.FromValue(value, message.Response);
171throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
193switch (message.Response.Status)
198using var document = JsonDocument.Parse(message.Response.ContentStream);
200return Response.FromValue(value, message.Response);
203throw _clientDiagnostics.CreateRequestFailedException(message.Response);
247switch (message.Response.Status)
252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
254return Response.FromValue(value, message.Response);
257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
280switch (message.Response.Status)
285using var document = JsonDocument.Parse(message.Response.ContentStream);
287return Response.FromValue(value, message.Response);
290throw _clientDiagnostics.CreateRequestFailedException(message.Response);
330switch (message.Response.Status)
335using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
337return Response.FromValue(value, message.Response);
340throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
372using var document = JsonDocument.Parse(message.Response.ContentStream);
374return Response.FromValue(value, message.Response);
377throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstancesRestOperations.cs (80)
88switch (message.Response.Status)
92return message.Response;
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
121return message.Response;
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
158switch (message.Response.Status)
163using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
165return Response.FromValue(value, message.Response);
168throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
185switch (message.Response.Status)
190using var document = JsonDocument.Parse(message.Response.ContentStream);
192return Response.FromValue(value, message.Response);
195throw _clientDiagnostics.CreateRequestFailedException(message.Response);
236switch (message.Response.Status)
241using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
243return Response.FromValue(value, message.Response);
246throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
268switch (message.Response.Status)
273using var document = JsonDocument.Parse(message.Response.ContentStream);
275return Response.FromValue(value, message.Response);
278throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
333return message.Response;
335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
362switch (message.Response.Status)
367return message.Response;
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
409switch (message.Response.Status)
414return message.Response;
416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
438switch (message.Response.Status)
443return message.Response;
445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
499return message.Response;
501throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
528switch (message.Response.Status)
532return message.Response;
534throw _clientDiagnostics.CreateRequestFailedException(message.Response);
576switch (message.Response.Status)
581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
583return Response.FromValue(value, message.Response);
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
613using var document = JsonDocument.Parse(message.Response.ContentStream);
615return Response.FromValue(value, message.Response);
618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
644switch (message.Response.Status)
649using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
651return Response.FromValue(value, message.Response);
654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
664switch (message.Response.Status)
669using var document = JsonDocument.Parse(message.Response.ContentStream);
671return Response.FromValue(value, message.Response);
674throw _clientDiagnostics.CreateRequestFailedException(message.Response);
709switch (message.Response.Status)
714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
716return Response.FromValue(value, message.Response);
719throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
741switch (message.Response.Status)
746using var document = JsonDocument.Parse(message.Response.ContentStream);
748return Response.FromValue(value, message.Response);
751throw _clientDiagnostics.CreateRequestFailedException(message.Response);
791switch (message.Response.Status)
796using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
798return Response.FromValue(value, message.Response);
801throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
828switch (message.Response.Status)
833using var document = JsonDocument.Parse(message.Response.ContentStream);
835return Response.FromValue(value, message.Response);
838throw _clientDiagnostics.CreateRequestFailedException(message.Response);
868switch (message.Response.Status)
873using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
875return Response.FromValue(value, message.Response);
878throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
895switch (message.Response.Status)
900using var document = JsonDocument.Parse(message.Response.ContentStream);
902return Response.FromValue(value, message.Response);
905throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceVulnerabilityAssessmentsRestOperations.cs (38)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
190return Response.FromValue(value, message.Response);
193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
278return message.Response;
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
303switch (message.Response.Status)
306return message.Response;
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
469switch (message.Response.Status)
474using var document = JsonDocument.Parse(message.Response.ContentStream);
476return Response.FromValue(value, message.Response);
479throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOperations.cs (36)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
310return message.Response;
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
345switch (message.Response.Status)
349return message.Response;
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
534switch (message.Response.Status)
539using var document = JsonDocument.Parse(message.Response.ContentStream);
541return Response.FromValue(value, message.Response);
544throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedServerSecurityAlertPoliciesRestOperations.cs (30)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
220return message.Response;
222throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return Response.FromValue(value, message.Response);
306throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
353return Response.FromValue(value, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
388using var document = JsonDocument.Parse(message.Response.ContentStream);
390return Response.FromValue(value, message.Response);
393throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateEndpointConnectionsRestOperations.cs (36)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
198return message.Response;
200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
236return message.Response;
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
285switch (message.Response.Status)
290return message.Response;
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
319switch (message.Response.Status)
324return message.Response;
326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
368switch (message.Response.Status)
373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
375return Response.FromValue(value, message.Response);
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
400switch (message.Response.Status)
405using var document = JsonDocument.Parse(message.Response.ContentStream);
407return Response.FromValue(value, message.Response);
410throw _clientDiagnostics.CreateRequestFailedException(message.Response);
450switch (message.Response.Status)
455using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
457return Response.FromValue(value, message.Response);
460throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
487switch (message.Response.Status)
492using var document = JsonDocument.Parse(message.Response.ContentStream);
494return Response.FromValue(value, message.Response);
497throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateLinkResourcesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RecommendedElasticPoolsRestOperations.cs (24)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
270switch (message.Response.Status)
275using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
277return Response.FromValue(value, message.Response);
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RecoverableManagedDatabasesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestorableDroppedManagedDatabasesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SensitivityLabelsRestOperations.cs (66)
96switch (message.Response.Status)
101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
103return Response.FromValue(value, message.Response);
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
134switch (message.Response.Status)
139using var document = JsonDocument.Parse(message.Response.ContentStream);
141return Response.FromValue(value, message.Response);
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
248switch (message.Response.Status)
253using var document = JsonDocument.Parse(message.Response.ContentStream);
255return Response.FromValue(value, message.Response);
258throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
332return message.Response;
334throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
376switch (message.Response.Status)
379return message.Response;
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452switch (message.Response.Status)
455return message.Response;
457throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
499switch (message.Response.Status)
502return message.Response;
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
576switch (message.Response.Status)
581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
583return Response.FromValue(value, message.Response);
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
629switch (message.Response.Status)
634using var document = JsonDocument.Parse(message.Response.ContentStream);
636return Response.FromValue(value, message.Response);
639throw _clientDiagnostics.CreateRequestFailedException(message.Response);
719switch (message.Response.Status)
725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
727return Response.FromValue(value, message.Response);
730throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
777switch (message.Response.Status)
783using var document = JsonDocument.Parse(message.Response.ContentStream);
785return Response.FromValue(value, message.Response);
788throw _clientDiagnostics.CreateRequestFailedException(message.Response);
858switch (message.Response.Status)
861return message.Response;
863throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
905switch (message.Response.Status)
908return message.Response;
910throw _clientDiagnostics.CreateRequestFailedException(message.Response);
956switch (message.Response.Status)
961using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
963return Response.FromValue(value, message.Response);
966throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
999switch (message.Response.Status)
1004using var document = JsonDocument.Parse(message.Response.ContentStream);
1006return Response.FromValue(value, message.Response);
1009throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1057switch (message.Response.Status)
1062using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1064return Response.FromValue(value, message.Response);
1067throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1102switch (message.Response.Status)
1107using var document = JsonDocument.Parse(message.Response.ContentStream);
1109return Response.FromValue(value, message.Response);
1112throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerAzureADAdministratorsRestOperations.cs (36)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187return message.Response;
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
217switch (message.Response.Status)
222return message.Response;
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
267switch (message.Response.Status)
272return message.Response;
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
297switch (message.Response.Status)
302return message.Response;
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
353return Response.FromValue(value, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerAzureADOnlyAuthenticationsRestOperations.cs (36)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187return message.Response;
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
217switch (message.Response.Status)
222return message.Response;
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
267switch (message.Response.Status)
272return message.Response;
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
297switch (message.Response.Status)
302return message.Response;
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
353return Response.FromValue(value, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerBlobAuditingPoliciesRestOperations.cs (30)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
122using var document = JsonDocument.Parse(message.Response.ContentStream);
124return Response.FromValue(value, message.Response);
127throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
183return message.Response;
185throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
212switch (message.Response.Status)
216return message.Response;
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
267return Response.FromValue(value, message.Response);
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297using var document = JsonDocument.Parse(message.Response.ContentStream);
299return Response.FromValue(value, message.Response);
302throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
349return Response.FromValue(value, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return Response.FromValue(value, message.Response);
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerDnsAliasesRestOperations.cs (42)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
185switch (message.Response.Status)
190return message.Response;
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
219switch (message.Response.Status)
224return message.Response;
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
273switch (message.Response.Status)
278return message.Response;
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312return message.Response;
314throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
388switch (message.Response.Status)
393using var document = JsonDocument.Parse(message.Response.ContentStream);
395return Response.FromValue(value, message.Response);
398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
455switch (message.Response.Status)
459return message.Response;
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
493switch (message.Response.Status)
497return message.Response;
499throw _clientDiagnostics.CreateRequestFailedException(message.Response);
539switch (message.Response.Status)
544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
546return Response.FromValue(value, message.Response);
549throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
576switch (message.Response.Status)
581using var document = JsonDocument.Parse(message.Response.ContentStream);
583return Response.FromValue(value, message.Response);
586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerKeysRestOperations.cs (36)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283return message.Response;
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
317switch (message.Response.Status)
322return message.Response;
324throw _clientDiagnostics.CreateRequestFailedException(message.Response);
371switch (message.Response.Status)
376return message.Response;
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
405switch (message.Response.Status)
410return message.Response;
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452switch (message.Response.Status)
457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
459return Response.FromValue(value, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
489switch (message.Response.Status)
494using var document = JsonDocument.Parse(message.Response.ContentStream);
496return Response.FromValue(value, message.Response);
499throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerSecurityAlertPoliciesRestOperations.cs (30)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
220return message.Response;
222throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return Response.FromValue(value, message.Response);
306throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
353return Response.FromValue(value, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
388using var document = JsonDocument.Parse(message.Response.ContentStream);
390return Response.FromValue(value, message.Response);
393throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServersRestOperations.cs (66)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155switch (message.Response.Status)
160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
162return Response.FromValue(value, message.Response);
165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
187switch (message.Response.Status)
192using var document = JsonDocument.Parse(message.Response.ContentStream);
194return Response.FromValue(value, message.Response);
197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
247switch (message.Response.Status)
252return message.Response;
254throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
281switch (message.Response.Status)
286return message.Response;
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
333return message.Response;
335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
362return message.Response;
364throw _clientDiagnostics.CreateRequestFailedException(message.Response);
414switch (message.Response.Status)
418return message.Response;
420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
447switch (message.Response.Status)
451return message.Response;
453throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
486return Response.FromValue(value, message.Response);
489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
499switch (message.Response.Status)
504using var document = JsonDocument.Parse(message.Response.ContentStream);
506return Response.FromValue(value, message.Response);
509throw _clientDiagnostics.CreateRequestFailedException(message.Response);
546switch (message.Response.Status)
551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
553return Response.FromValue(value, message.Response);
556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
578using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
618switch (message.Response.Status)
623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
625return Response.FromValue(value, message.Response);
628throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
690switch (message.Response.Status)
695using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
697return Response.FromValue(value, message.Response);
700throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
717switch (message.Response.Status)
722using var document = JsonDocument.Parse(message.Response.ContentStream);
724return Response.FromValue(value, message.Response);
727throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerVulnerabilityAssessmentsRestOperations.cs (38)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
190return Response.FromValue(value, message.Response);
193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
278return message.Response;
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
303switch (message.Response.Status)
306return message.Response;
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
469switch (message.Response.Status)
474using var document = JsonDocument.Parse(message.Response.ContentStream);
476return Response.FromValue(value, message.Response);
479throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SubscriptionUsagesRestOperations.cs (24)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155switch (message.Response.Status)
160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
162return Response.FromValue(value, message.Response);
165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
187switch (message.Response.Status)
192using var document = JsonDocument.Parse(message.Response.ContentStream);
194return Response.FromValue(value, message.Response);
197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232switch (message.Response.Status)
237using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
239return Response.FromValue(value, message.Response);
242throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
264switch (message.Response.Status)
269using var document = JsonDocument.Parse(message.Response.ContentStream);
271return Response.FromValue(value, message.Response);
274throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SyncAgentsRestOperations.cs (60)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return message.Response;
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238return message.Response;
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292return message.Response;
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
326return message.Response;
328throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
377return Response.FromValue(value, message.Response);
380throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
407using var document = JsonDocument.Parse(message.Response.ContentStream);
409return Response.FromValue(value, message.Response);
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
594switch (message.Response.Status)
599using var document = JsonDocument.Parse(message.Response.ContentStream);
601return Response.FromValue(value, message.Response);
604throw _clientDiagnostics.CreateRequestFailedException(message.Response);
644switch (message.Response.Status)
649using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
651return Response.FromValue(value, message.Response);
654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
681switch (message.Response.Status)
686using var document = JsonDocument.Parse(message.Response.ContentStream);
688return Response.FromValue(value, message.Response);
691throw _clientDiagnostics.CreateRequestFailedException(message.Response);
736switch (message.Response.Status)
741using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
743return Response.FromValue(value, message.Response);
746throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
778switch (message.Response.Status)
783using var document = JsonDocument.Parse(message.Response.ContentStream);
785return Response.FromValue(value, message.Response);
788throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SyncGroupsRestOperations.cs (108)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
169switch (message.Response.Status)
173return message.Response;
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
207switch (message.Response.Status)
211return message.Response;
213throw _clientDiagnostics.CreateRequestFailedException(message.Response);
269switch (message.Response.Status)
274using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
276return Response.FromValue(value, message.Response);
279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311switch (message.Response.Status)
316using var document = JsonDocument.Parse(message.Response.ContentStream);
318return Response.FromValue(value, message.Response);
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
396switch (message.Response.Status)
401using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
403return Response.FromValue(value, message.Response);
406throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
515switch (message.Response.Status)
518return message.Response;
520throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
552switch (message.Response.Status)
555return message.Response;
557throw _clientDiagnostics.CreateRequestFailedException(message.Response);
612switch (message.Response.Status)
615return message.Response;
617throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
649switch (message.Response.Status)
652return message.Response;
654throw _clientDiagnostics.CreateRequestFailedException(message.Response);
709switch (message.Response.Status)
714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
716return Response.FromValue(value, message.Response);
719throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
751switch (message.Response.Status)
756using var document = JsonDocument.Parse(message.Response.ContentStream);
758return Response.FromValue(value, message.Response);
761throw _clientDiagnostics.CreateRequestFailedException(message.Response);
825switch (message.Response.Status)
830return message.Response;
832throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
869switch (message.Response.Status)
874return message.Response;
876throw _clientDiagnostics.CreateRequestFailedException(message.Response);
930switch (message.Response.Status)
935return message.Response;
937throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
969switch (message.Response.Status)
974return message.Response;
976throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1040switch (message.Response.Status)
1044return message.Response;
1046throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1083switch (message.Response.Status)
1087return message.Response;
1089throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1138switch (message.Response.Status)
1143using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1145return Response.FromValue(value, message.Response);
1148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1175switch (message.Response.Status)
1180using var document = JsonDocument.Parse(message.Response.ContentStream);
1182return Response.FromValue(value, message.Response);
1185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1220switch (message.Response.Status)
1225using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1227return Response.FromValue(value, message.Response);
1230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1252switch (message.Response.Status)
1257using var document = JsonDocument.Parse(message.Response.ContentStream);
1259return Response.FromValue(value, message.Response);
1262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1312switch (message.Response.Status)
1317using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1319return Response.FromValue(value, message.Response);
1322throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1359switch (message.Response.Status)
1364using var document = JsonDocument.Parse(message.Response.ContentStream);
1366return Response.FromValue(value, message.Response);
1369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1431switch (message.Response.Status)
1436using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1438return Response.FromValue(value, message.Response);
1441throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1490switch (message.Response.Status)
1495using var document = JsonDocument.Parse(message.Response.ContentStream);
1497return Response.FromValue(value, message.Response);
1500throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1545switch (message.Response.Status)
1550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1552return Response.FromValue(value, message.Response);
1555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1587switch (message.Response.Status)
1592using var document = JsonDocument.Parse(message.Response.ContentStream);
1594return Response.FromValue(value, message.Response);
1597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SyncMembersRestOperations.cs (64)
104switch (message.Response.Status)
109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
111return Response.FromValue(value, message.Response);
114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232switch (message.Response.Status)
237return message.Response;
239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
281switch (message.Response.Status)
286return message.Response;
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354return message.Response;
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398return message.Response;
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
475return message.Response;
477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
519switch (message.Response.Status)
523return message.Response;
525throw _clientDiagnostics.CreateRequestFailedException(message.Response);
581switch (message.Response.Status)
586using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
588return Response.FromValue(value, message.Response);
591throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
623switch (message.Response.Status)
628using var document = JsonDocument.Parse(message.Response.ContentStream);
630return Response.FromValue(value, message.Response);
633throw _clientDiagnostics.CreateRequestFailedException(message.Response);
696switch (message.Response.Status)
701using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
703return Response.FromValue(value, message.Response);
706throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
743switch (message.Response.Status)
748using var document = JsonDocument.Parse(message.Response.ContentStream);
750return Response.FromValue(value, message.Response);
753throw _clientDiagnostics.CreateRequestFailedException(message.Response);
815switch (message.Response.Status)
819return message.Response;
821throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
858switch (message.Response.Status)
862return message.Response;
864throw _clientDiagnostics.CreateRequestFailedException(message.Response);
914switch (message.Response.Status)
919using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
921return Response.FromValue(value, message.Response);
924throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
961switch (message.Response.Status)
966using var document = JsonDocument.Parse(message.Response.ContentStream);
968return Response.FromValue(value, message.Response);
971throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1026switch (message.Response.Status)
1031using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1033return Response.FromValue(value, message.Response);
1036throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1078switch (message.Response.Status)
1083using var document = JsonDocument.Parse(message.Response.ContentStream);
1085return Response.FromValue(value, message.Response);
1088throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualClustersRestOperations.cs (52)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
293switch (message.Response.Status)
298return message.Response;
300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
322switch (message.Response.Status)
327return message.Response;
329throw _clientDiagnostics.CreateRequestFailedException(message.Response);
379switch (message.Response.Status)
383return message.Response;
385throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
412switch (message.Response.Status)
416return message.Response;
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
448switch (message.Response.Status)
453using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
455return Response.FromValue(value, message.Response);
458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
475switch (message.Response.Status)
480using var document = JsonDocument.Parse(message.Response.ContentStream);
482return Response.FromValue(value, message.Response);
485throw _clientDiagnostics.CreateRequestFailedException(message.Response);
520switch (message.Response.Status)
525using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
527return Response.FromValue(value, message.Response);
530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
552switch (message.Response.Status)
557using var document = JsonDocument.Parse(message.Response.ContentStream);
559return Response.FromValue(value, message.Response);
562throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualNetworkRulesRestOperations.cs (36)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return message.Response;
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238return message.Response;
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292return message.Response;
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
326return message.Response;
328throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
377return Response.FromValue(value, message.Response);
380throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
407using var document = JsonDocument.Parse(message.Response.ContentStream);
409return Response.FromValue(value, message.Response);
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452switch (message.Response.Status)
457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
459return Response.FromValue(value, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
489switch (message.Response.Status)
494using var document = JsonDocument.Parse(message.Response.ContentStream);
496return Response.FromValue(value, message.Response);
499throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkloadClassifiersRestOperations.cs (36)
104switch (message.Response.Status)
109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
111return Response.FromValue(value, message.Response);
114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232switch (message.Response.Status)
237return message.Response;
239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
281switch (message.Response.Status)
286return message.Response;
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354return message.Response;
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398return message.Response;
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
456switch (message.Response.Status)
461using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
463return Response.FromValue(value, message.Response);
466throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
565return Response.FromValue(value, message.Response);
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
605switch (message.Response.Status)
610using var document = JsonDocument.Parse(message.Response.ContentStream);
612return Response.FromValue(value, message.Response);
615throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkloadGroupsRestOperations.cs (36)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
213switch (message.Response.Status)
218return message.Response;
220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257switch (message.Response.Status)
262return message.Response;
264throw _clientDiagnostics.CreateRequestFailedException(message.Response);
318switch (message.Response.Status)
323return message.Response;
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
362return message.Response;
364throw _clientDiagnostics.CreateRequestFailedException(message.Response);
413switch (message.Response.Status)
418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
420return Response.FromValue(value, message.Response);
423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
505switch (message.Response.Status)
510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
512return Response.FromValue(value, message.Response);
515throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
547switch (message.Response.Status)
552using var document = JsonDocument.Parse(message.Response.ContentStream);
554return Response.FromValue(value, message.Response);
557throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Storage (616)
Generated\BlobContainersRestOperations.cs (110)
106switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
141switch (message.Response.Status)
146using var document = JsonDocument.Parse(message.Response.ContentStream);
148return Response.FromValue(value, message.Response);
151throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
214using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
216return Response.FromValue(value, message.Response);
219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251switch (message.Response.Status)
257using var document = JsonDocument.Parse(message.Response.ContentStream);
259return Response.FromValue(value, message.Response);
262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
319switch (message.Response.Status)
324using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
326return Response.FromValue(value, message.Response);
329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
361switch (message.Response.Status)
366using var document = JsonDocument.Parse(message.Response.ContentStream);
368return Response.FromValue(value, message.Response);
371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
419switch (message.Response.Status)
424using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
426return Response.FromValue(value, message.Response);
429throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
456switch (message.Response.Status)
461using var document = JsonDocument.Parse(message.Response.ContentStream);
463return Response.FromValue(value, message.Response);
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
513switch (message.Response.Status)
517return message.Response;
519throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
546switch (message.Response.Status)
550return message.Response;
552throw _clientDiagnostics.CreateRequestFailedException(message.Response);
610switch (message.Response.Status)
615using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
617return Response.FromValue(value, message.Response);
620throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
652switch (message.Response.Status)
657using var document = JsonDocument.Parse(message.Response.ContentStream);
659return Response.FromValue(value, message.Response);
662throw _clientDiagnostics.CreateRequestFailedException(message.Response);
720switch (message.Response.Status)
725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
727return Response.FromValue(value, message.Response);
730throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
762switch (message.Response.Status)
767using var document = JsonDocument.Parse(message.Response.ContentStream);
769return Response.FromValue(value, message.Response);
772throw _clientDiagnostics.CreateRequestFailedException(message.Response);
835switch (message.Response.Status)
840using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
842return Response.FromValue(value, message.Response);
845throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
874switch (message.Response.Status)
879using var document = JsonDocument.Parse(message.Response.ContentStream);
881return Response.FromValue(value, message.Response);
884throw _clientDiagnostics.CreateRequestFailedException(message.Response);
939switch (message.Response.Status)
944using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
946return Response.FromValue(value, message.Response);
949throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
977switch (message.Response.Status)
982using var document = JsonDocument.Parse(message.Response.ContentStream);
984return Response.FromValue(value, message.Response);
987throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1043switch (message.Response.Status)
1048using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1050return Response.FromValue(value, message.Response);
1053throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1085switch (message.Response.Status)
1090using var document = JsonDocument.Parse(message.Response.ContentStream);
1092return Response.FromValue(value, message.Response);
1095throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1150switch (message.Response.Status)
1155using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1157return Response.FromValue(value, message.Response);
1160throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1192switch (message.Response.Status)
1197using var document = JsonDocument.Parse(message.Response.ContentStream);
1199return Response.FromValue(value, message.Response);
1202throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1265switch (message.Response.Status)
1270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1272return Response.FromValue(value, message.Response);
1275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1308switch (message.Response.Status)
1313using var document = JsonDocument.Parse(message.Response.ContentStream);
1315return Response.FromValue(value, message.Response);
1318throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1375switch (message.Response.Status)
1380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1382return Response.FromValue(value, message.Response);
1385throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1413switch (message.Response.Status)
1418using var document = JsonDocument.Parse(message.Response.ContentStream);
1420return Response.FromValue(value, message.Response);
1423throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1466switch (message.Response.Status)
1471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1473return Response.FromValue(value, message.Response);
1476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1506switch (message.Response.Status)
1511using var document = JsonDocument.Parse(message.Response.ContentStream);
1513return Response.FromValue(value, message.Response);
1516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BlobServicesRestOperations.cs (24)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
185switch (message.Response.Status)
190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
192return Response.FromValue(value, message.Response);
195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
222switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
282return Response.FromValue(value, message.Response);
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EncryptionScopesRestOperations.cs (40)
106switch (message.Response.Status)
112using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
114return Response.FromValue(value, message.Response);
117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
149switch (message.Response.Status)
155using var document = JsonDocument.Parse(message.Response.ContentStream);
157return Response.FromValue(value, message.Response);
160throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
224return Response.FromValue(value, message.Response);
227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
259switch (message.Response.Status)
264using var document = JsonDocument.Parse(message.Response.ContentStream);
266return Response.FromValue(value, message.Response);
269throw _clientDiagnostics.CreateRequestFailedException(message.Response);
317switch (message.Response.Status)
322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
324return Response.FromValue(value, message.Response);
327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
354switch (message.Response.Status)
359using var document = JsonDocument.Parse(message.Response.ContentStream);
361return Response.FromValue(value, message.Response);
364throw _clientDiagnostics.CreateRequestFailedException(message.Response);
406switch (message.Response.Status)
411using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
413return Response.FromValue(value, message.Response);
416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
438switch (message.Response.Status)
443using var document = JsonDocument.Parse(message.Response.ContentStream);
445return Response.FromValue(value, message.Response);
448throw _clientDiagnostics.CreateRequestFailedException(message.Response);
488switch (message.Response.Status)
493using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
495return Response.FromValue(value, message.Response);
498throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FileServicesRestOperations.cs (24)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
185switch (message.Response.Status)
190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
192return Response.FromValue(value, message.Response);
195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
222switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
282return Response.FromValue(value, message.Response);
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FileSharesRestOperations.cs (52)
102switch (message.Response.Status)
107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
109return Response.FromValue(value, message.Response);
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
141using var document = JsonDocument.Parse(message.Response.ContentStream);
143return Response.FromValue(value, message.Response);
146throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
209using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
211return Response.FromValue(value, message.Response);
214throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
246switch (message.Response.Status)
252using var document = JsonDocument.Parse(message.Response.ContentStream);
254return Response.FromValue(value, message.Response);
257throw _clientDiagnostics.CreateRequestFailedException(message.Response);
314switch (message.Response.Status)
319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
321return Response.FromValue(value, message.Response);
324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
356switch (message.Response.Status)
361using var document = JsonDocument.Parse(message.Response.ContentStream);
363return Response.FromValue(value, message.Response);
366throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
420using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
422return Response.FromValue(value, message.Response);
425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
452switch (message.Response.Status)
457using var document = JsonDocument.Parse(message.Response.ContentStream);
459return Response.FromValue(value, message.Response);
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
510switch (message.Response.Status)
514return message.Response;
516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
543switch (message.Response.Status)
547return message.Response;
549throw _clientDiagnostics.CreateRequestFailedException(message.Response);
607switch (message.Response.Status)
610return message.Response;
612throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
644switch (message.Response.Status)
647return message.Response;
649throw _clientDiagnostics.CreateRequestFailedException(message.Response);
691switch (message.Response.Status)
696using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
698return Response.FromValue(value, message.Response);
701throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
730switch (message.Response.Status)
735using var document = JsonDocument.Parse(message.Response.ContentStream);
737return Response.FromValue(value, message.Response);
740throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ObjectReplicationPoliciesRestOperations.cs (30)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
188return Response.FromValue(value, message.Response);
191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
218switch (message.Response.Status)
223using var document = JsonDocument.Parse(message.Response.ContentStream);
225return Response.FromValue(value, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
285switch (message.Response.Status)
290using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
292return Response.FromValue(value, message.Response);
295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
327switch (message.Response.Status)
332using var document = JsonDocument.Parse(message.Response.ContentStream);
334return Response.FromValue(value, message.Response);
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385switch (message.Response.Status)
389return message.Response;
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
418switch (message.Response.Status)
422return message.Response;
424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateEndpointConnectionsRestOperations.cs (30)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
188return Response.FromValue(value, message.Response);
191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
218switch (message.Response.Status)
223using var document = JsonDocument.Parse(message.Response.ContentStream);
225return Response.FromValue(value, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
285switch (message.Response.Status)
290using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
292return Response.FromValue(value, message.Response);
295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
327switch (message.Response.Status)
332using var document = JsonDocument.Parse(message.Response.ContentStream);
334return Response.FromValue(value, message.Response);
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385switch (message.Response.Status)
389return message.Response;
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
418switch (message.Response.Status)
422return message.Response;
424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueueRestOperations.cs (46)
106switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
148switch (message.Response.Status)
153using var document = JsonDocument.Parse(message.Response.ContentStream);
155return Response.FromValue(value, message.Response);
158throw _clientDiagnostics.CreateRequestFailedException(message.Response);
215switch (message.Response.Status)
220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
222return Response.FromValue(value, message.Response);
225throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257switch (message.Response.Status)
262using var document = JsonDocument.Parse(message.Response.ContentStream);
264return Response.FromValue(value, message.Response);
267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
315switch (message.Response.Status)
320using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
322return Response.FromValue(value, message.Response);
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
352switch (message.Response.Status)
357using var document = JsonDocument.Parse(message.Response.ContentStream);
359return Response.FromValue(value, message.Response);
362throw _clientDiagnostics.CreateRequestFailedException(message.Response);
410switch (message.Response.Status)
413return message.Response;
415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
445return message.Response;
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
499switch (message.Response.Status)
504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
506return Response.FromValue(value, message.Response);
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
533switch (message.Response.Status)
538using var document = JsonDocument.Parse(message.Response.ContentStream);
540return Response.FromValue(value, message.Response);
543throw _clientDiagnostics.CreateRequestFailedException(message.Response);
585switch (message.Response.Status)
590using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
592return Response.FromValue(value, message.Response);
595throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
624switch (message.Response.Status)
629using var document = JsonDocument.Parse(message.Response.ContentStream);
631return Response.FromValue(value, message.Response);
634throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueueServicesRestOperations.cs (24)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
185switch (message.Response.Status)
190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
192return Response.FromValue(value, message.Response);
195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
222switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
282return Response.FromValue(value, message.Response);
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\StorageAccountsRestOperations.cs (110)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
173switch (message.Response.Status)
177return message.Response;
179throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
206switch (message.Response.Status)
210return message.Response;
212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
256return message.Response;
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
280switch (message.Response.Status)
284return message.Response;
286throw _clientDiagnostics.CreateRequestFailedException(message.Response);
332switch (message.Response.Status)
337using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
339return Response.FromValue(value, message.Response);
342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
365switch (message.Response.Status)
370using var document = JsonDocument.Parse(message.Response.ContentStream);
372return Response.FromValue(value, message.Response);
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return Response.FromValue(value, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
462switch (message.Response.Status)
467using var document = JsonDocument.Parse(message.Response.ContentStream);
469return Response.FromValue(value, message.Response);
472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
498switch (message.Response.Status)
503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
505return Response.FromValue(value, message.Response);
508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
518switch (message.Response.Status)
523using var document = JsonDocument.Parse(message.Response.ContentStream);
525return Response.FromValue(value, message.Response);
528throw _clientDiagnostics.CreateRequestFailedException(message.Response);
563switch (message.Response.Status)
568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
570return Response.FromValue(value, message.Response);
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
590switch (message.Response.Status)
595using var document = JsonDocument.Parse(message.Response.ContentStream);
597return Response.FromValue(value, message.Response);
600throw _clientDiagnostics.CreateRequestFailedException(message.Response);
643switch (message.Response.Status)
648using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
650return Response.FromValue(value, message.Response);
653throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
675switch (message.Response.Status)
680using var document = JsonDocument.Parse(message.Response.ContentStream);
682return Response.FromValue(value, message.Response);
685throw _clientDiagnostics.CreateRequestFailedException(message.Response);
736switch (message.Response.Status)
741using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
743return Response.FromValue(value, message.Response);
746throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
773switch (message.Response.Status)
778using var document = JsonDocument.Parse(message.Response.ContentStream);
780return Response.FromValue(value, message.Response);
783throw _clientDiagnostics.CreateRequestFailedException(message.Response);
834switch (message.Response.Status)
839using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
841return Response.FromValue(value, message.Response);
844throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
871switch (message.Response.Status)
876using var document = JsonDocument.Parse(message.Response.ContentStream);
878return Response.FromValue(value, message.Response);
881throw _clientDiagnostics.CreateRequestFailedException(message.Response);
932switch (message.Response.Status)
937using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
939return Response.FromValue(value, message.Response);
942throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
969switch (message.Response.Status)
974using var document = JsonDocument.Parse(message.Response.ContentStream);
976return Response.FromValue(value, message.Response);
979throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1020switch (message.Response.Status)
1024return message.Response;
1026throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1048switch (message.Response.Status)
1052return message.Response;
1054throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1105switch (message.Response.Status)
1109return message.Response;
1111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1138switch (message.Response.Status)
1142return message.Response;
1144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1185switch (message.Response.Status)
1188return message.Response;
1190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1212switch (message.Response.Status)
1215return message.Response;
1217throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1247switch (message.Response.Status)
1252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1254return Response.FromValue(value, message.Response);
1257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1274switch (message.Response.Status)
1279using var document = JsonDocument.Parse(message.Response.ContentStream);
1281return Response.FromValue(value, message.Response);
1284throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TableRestOperations.cs (46)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
134switch (message.Response.Status)
139using var document = JsonDocument.Parse(message.Response.ContentStream);
141return Response.FromValue(value, message.Response);
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
192switch (message.Response.Status)
197using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
199return Response.FromValue(value, message.Response);
202throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
229switch (message.Response.Status)
234using var document = JsonDocument.Parse(message.Response.ContentStream);
236return Response.FromValue(value, message.Response);
239throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
294return Response.FromValue(value, message.Response);
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
324switch (message.Response.Status)
329using var document = JsonDocument.Parse(message.Response.ContentStream);
331return Response.FromValue(value, message.Response);
334throw _clientDiagnostics.CreateRequestFailedException(message.Response);
382switch (message.Response.Status)
385return message.Response;
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
414switch (message.Response.Status)
417return message.Response;
419throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
493switch (message.Response.Status)
498using var document = JsonDocument.Parse(message.Response.ContentStream);
500return Response.FromValue(value, message.Response);
503throw _clientDiagnostics.CreateRequestFailedException(message.Response);
543switch (message.Response.Status)
548using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
550return Response.FromValue(value, message.Response);
553throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580switch (message.Response.Status)
585using var document = JsonDocument.Parse(message.Response.ContentStream);
587return Response.FromValue(value, message.Response);
590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TableServicesRestOperations.cs (24)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
185switch (message.Response.Status)
190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
192return Response.FromValue(value, message.Response);
195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
222switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
282return Response.FromValue(value, message.Response);
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Search.Documents (306)
Generated\DataSourcesRestClient.cs (38)
101switch (message.Response.Status)
107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
109return Response.FromValue(value, message.Response);
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
142using var document = JsonDocument.Parse(message.Response.ContentStream);
144return Response.FromValue(value, message.Response);
147throw _clientDiagnostics.CreateRequestFailedException(message.Response);
190switch (message.Response.Status)
194return message.Response;
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254switch (message.Response.Status)
259using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
261return Response.FromValue(value, message.Response);
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
281switch (message.Response.Status)
286using var document = JsonDocument.Parse(message.Response.ContentStream);
288return Response.FromValue(value, message.Response);
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
320switch (message.Response.Status)
325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
327return Response.FromValue(value, message.Response);
330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
341switch (message.Response.Status)
346using var document = JsonDocument.Parse(message.Response.ContentStream);
348return Response.FromValue(value, message.Response);
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
386switch (message.Response.Status)
391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
393return Response.FromValue(value, message.Response);
396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
413switch (message.Response.Status)
418using var document = JsonDocument.Parse(message.Response.ContentStream);
420return Response.FromValue(value, message.Response);
423throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DocumentsRestClient.cs (48)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
103switch (message.Response.Status)
108using var document = JsonDocument.Parse(message.Response.ContentStream);
110return Response.FromValue(value, message.Response);
113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
151switch (message.Response.Status)
156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
158return Response.FromValue(value, message.Response);
161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
178switch (message.Response.Status)
183using var document = JsonDocument.Parse(message.Response.ContentStream);
185return Response.FromValue(value, message.Response);
188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
229switch (message.Response.Status)
234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
241return Response.FromValue(value, message.Response);
244throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
262switch (message.Response.Status)
267using var document = JsonDocument.Parse(message.Response.ContentStream);
274return Response.FromValue(value, message.Response);
277throw _clientDiagnostics.CreateRequestFailedException(message.Response);
315switch (message.Response.Status)
320using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
322return Response.FromValue(value, message.Response);
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
342switch (message.Response.Status)
347using var document = JsonDocument.Parse(message.Response.ContentStream);
349return Response.FromValue(value, message.Response);
352throw _clientDiagnostics.CreateRequestFailedException(message.Response);
390switch (message.Response.Status)
396using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
398return Response.FromValue(value, message.Response);
401throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
418switch (message.Response.Status)
424using var document = JsonDocument.Parse(message.Response.ContentStream);
426return Response.FromValue(value, message.Response);
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
467switch (message.Response.Status)
472using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
474return Response.FromValue(value, message.Response);
477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IndexersRestClient.cs (58)
81switch (message.Response.Status)
84return message.Response;
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
103switch (message.Response.Status)
106return message.Response;
108throw _clientDiagnostics.CreateRequestFailedException(message.Response);
141switch (message.Response.Status)
144return message.Response;
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
163switch (message.Response.Status)
166return message.Response;
168throw _clientDiagnostics.CreateRequestFailedException(message.Response);
221switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
256switch (message.Response.Status)
262using var document = JsonDocument.Parse(message.Response.ContentStream);
264return Response.FromValue(value, message.Response);
267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
310switch (message.Response.Status)
314return message.Response;
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
335switch (message.Response.Status)
339return message.Response;
341throw _clientDiagnostics.CreateRequestFailedException(message.Response);
374switch (message.Response.Status)
379using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
381return Response.FromValue(value, message.Response);
384throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
440switch (message.Response.Status)
445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
447return Response.FromValue(value, message.Response);
450throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
461switch (message.Response.Status)
466using var document = JsonDocument.Parse(message.Response.ContentStream);
468return Response.FromValue(value, message.Response);
471throw _clientDiagnostics.CreateRequestFailedException(message.Response);
506switch (message.Response.Status)
511using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
513return Response.FromValue(value, message.Response);
516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
533switch (message.Response.Status)
538using var document = JsonDocument.Parse(message.Response.ContentStream);
540return Response.FromValue(value, message.Response);
543throw _clientDiagnostics.CreateRequestFailedException(message.Response);
576switch (message.Response.Status)
581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
583return Response.FromValue(value, message.Response);
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
603switch (message.Response.Status)
608using var document = JsonDocument.Parse(message.Response.ContentStream);
610return Response.FromValue(value, message.Response);
613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IndexesRestClient.cs (54)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
110switch (message.Response.Status)
115using var document = JsonDocument.Parse(message.Response.ContentStream);
117return Response.FromValue(value, message.Response);
120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
149switch (message.Response.Status)
154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
156return Response.FromValue(value, message.Response);
159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
170switch (message.Response.Status)
175using var document = JsonDocument.Parse(message.Response.ContentStream);
177return Response.FromValue(value, message.Response);
180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
238switch (message.Response.Status)
244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
246return Response.FromValue(value, message.Response);
249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
274switch (message.Response.Status)
280using var document = JsonDocument.Parse(message.Response.ContentStream);
282return Response.FromValue(value, message.Response);
285throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
332return message.Response;
334throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
353switch (message.Response.Status)
357return message.Response;
359throw _clientDiagnostics.CreateRequestFailedException(message.Response);
392switch (message.Response.Status)
397using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
399return Response.FromValue(value, message.Response);
402throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
419switch (message.Response.Status)
424using var document = JsonDocument.Parse(message.Response.ContentStream);
426return Response.FromValue(value, message.Response);
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
462switch (message.Response.Status)
467using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
469return Response.FromValue(value, message.Response);
472throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
489switch (message.Response.Status)
494using var document = JsonDocument.Parse(message.Response.ContentStream);
496return Response.FromValue(value, message.Response);
499throw _clientDiagnostics.CreateRequestFailedException(message.Response);
541switch (message.Response.Status)
546using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
548return Response.FromValue(value, message.Response);
551throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
578using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SkillsetsRestClient.cs (38)
101switch (message.Response.Status)
107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
109return Response.FromValue(value, message.Response);
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
142using var document = JsonDocument.Parse(message.Response.ContentStream);
144return Response.FromValue(value, message.Response);
147throw _clientDiagnostics.CreateRequestFailedException(message.Response);
190switch (message.Response.Status)
194return message.Response;
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254switch (message.Response.Status)
259using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
261return Response.FromValue(value, message.Response);
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
281switch (message.Response.Status)
286using var document = JsonDocument.Parse(message.Response.ContentStream);
288return Response.FromValue(value, message.Response);
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
320switch (message.Response.Status)
325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
327return Response.FromValue(value, message.Response);
330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
341switch (message.Response.Status)
346using var document = JsonDocument.Parse(message.Response.ContentStream);
348return Response.FromValue(value, message.Response);
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
386switch (message.Response.Status)
391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
393return Response.FromValue(value, message.Response);
396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
413switch (message.Response.Status)
418using var document = JsonDocument.Parse(message.Response.ContentStream);
420return Response.FromValue(value, message.Response);
423throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SynonymMapsRestClient.cs (38)
101switch (message.Response.Status)
107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
109return Response.FromValue(value, message.Response);
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
142using var document = JsonDocument.Parse(message.Response.ContentStream);
144return Response.FromValue(value, message.Response);
147throw _clientDiagnostics.CreateRequestFailedException(message.Response);
190switch (message.Response.Status)
194return message.Response;
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254switch (message.Response.Status)
259using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
261return Response.FromValue(value, message.Response);
264throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
281switch (message.Response.Status)
286using var document = JsonDocument.Parse(message.Response.ContentStream);
288return Response.FromValue(value, message.Response);
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
320switch (message.Response.Status)
325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
327return Response.FromValue(value, message.Response);
330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
341switch (message.Response.Status)
346using var document = JsonDocument.Parse(message.Response.ContentStream);
348return Response.FromValue(value, message.Response);
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
386switch (message.Response.Status)
391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
393return Response.FromValue(value, message.Response);
396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
413switch (message.Response.Status)
418using var document = JsonDocument.Parse(message.Response.ContentStream);
420return Response.FromValue(value, message.Response);
423throw _clientDiagnostics.CreateRequestFailedException(message.Response);
SearchClient.cs (22)
603switch (message.Response.Status)
607T value = await message.Response.ContentStream.DeserializeAsync<T>(
612return Response.FromValue(value, message.Response);
616await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) :
617ClientDiagnostics.CreateRequestFailedException(message.Response);
786switch (message.Response.Status)
792message.Response.ContentStream,
800results.ConfigurePaging(this, message.Response);
802return Response.FromValue(results, message.Response);
806await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) :
807ClientDiagnostics.CreateRequestFailedException(message.Response);
957switch (message.Response.Status)
962message.Response.ContentStream,
967return Response.FromValue(suggestions, message.Response);
971await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) :
972ClientDiagnostics.CreateRequestFailedException(message.Response);
1257switch (message.Response.Status)
1264await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false) :
1265JsonDocument.Parse(message.Response.ContentStream, default);
1298return Response.FromValue(value, message.Response);
1302await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) :
1303ClientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Security.Attestation (90)
Generated\AttestationRestClient.cs (24)
79switch (message.Response.Status)
84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
86return Response.FromValue(value, message.Response);
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
106switch (message.Response.Status)
111using var document = JsonDocument.Parse(message.Response.ContentStream);
113return Response.FromValue(value, message.Response);
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
151switch (message.Response.Status)
156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
158return Response.FromValue(value, message.Response);
161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
178switch (message.Response.Status)
183using var document = JsonDocument.Parse(message.Response.ContentStream);
185return Response.FromValue(value, message.Response);
188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
223switch (message.Response.Status)
228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
230return Response.FromValue(value, message.Response);
233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
250switch (message.Response.Status)
255using var document = JsonDocument.Parse(message.Response.ContentStream);
257return Response.FromValue(value, message.Response);
260throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyCertificatesRestClient.cs (24)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
205switch (message.Response.Status)
210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
212return Response.FromValue(value, message.Response);
215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
237using var document = JsonDocument.Parse(message.Response.ContentStream);
239return Response.FromValue(value, message.Response);
242throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyRestClient.cs (24)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
91switch (message.Response.Status)
96using var document = JsonDocument.Parse(message.Response.ContentStream);
98return Response.FromValue(value, message.Response);
101throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
164switch (message.Response.Status)
169using var document = JsonDocument.Parse(message.Response.ContentStream);
171return Response.FromValue(value, message.Response);
174throw _clientDiagnostics.CreateRequestFailedException(message.Response);
210switch (message.Response.Status)
215using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
217return Response.FromValue(value, message.Response);
220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
243using var document = JsonDocument.Parse(message.Response.ContentStream);
245return Response.FromValue(value, message.Response);
248throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Security.ConfidentialLedger (106)
Azure.Security.KeyVault.Administration (124)
Generated\BackupRestoreRestClient.cs (40)
77var headers = new AzureSecurityKeyVaultAdministrationFullBackupHeaders(message.Response);
78switch (message.Response.Status)
81return ResponseWithHeaders.FromValue(headers, message.Response);
83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101var headers = new AzureSecurityKeyVaultAdministrationFullBackupHeaders(message.Response);
102switch (message.Response.Status)
105return ResponseWithHeaders.FromValue(headers, message.Response);
107throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
152return Response.FromValue(value, message.Response);
155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
177switch (message.Response.Status)
182using var document = JsonDocument.Parse(message.Response.ContentStream);
184return Response.FromValue(value, message.Response);
187throw _clientDiagnostics.CreateRequestFailedException(message.Response);
226var headers = new AzureSecurityKeyVaultAdministrationFullRestoreOperationHeaders(message.Response);
227switch (message.Response.Status)
230return ResponseWithHeaders.FromValue(headers, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
250var headers = new AzureSecurityKeyVaultAdministrationFullRestoreOperationHeaders(message.Response);
251switch (message.Response.Status)
254return ResponseWithHeaders.FromValue(headers, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
301return Response.FromValue(value, message.Response);
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
331using var document = JsonDocument.Parse(message.Response.ContentStream);
333return Response.FromValue(value, message.Response);
336throw _clientDiagnostics.CreateRequestFailedException(message.Response);
382var headers = new AzureSecurityKeyVaultAdministrationSelectiveKeyRestoreOperationHeaders(message.Response);
383switch (message.Response.Status)
386return ResponseWithHeaders.FromValue(headers, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
411var headers = new AzureSecurityKeyVaultAdministrationSelectiveKeyRestoreOperationHeaders(message.Response);
412switch (message.Response.Status)
415return ResponseWithHeaders.FromValue(headers, message.Response);
417throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleAssignmentsRestClient.cs (40)
82switch (message.Response.Status)
87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
89return Response.FromValue(value, message.Response);
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
224switch (message.Response.Status)
229using var document = JsonDocument.Parse(message.Response.ContentStream);
231return Response.FromValue(value, message.Response);
234throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
285return Response.FromValue(value, message.Response);
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
320using var document = JsonDocument.Parse(message.Response.ContentStream);
322return Response.FromValue(value, message.Response);
325throw _clientDiagnostics.CreateRequestFailedException(message.Response);
368switch (message.Response.Status)
373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
375return Response.FromValue(value, message.Response);
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452switch (message.Response.Status)
457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
459return Response.FromValue(value, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
490switch (message.Response.Status)
495using var document = JsonDocument.Parse(message.Response.ContentStream);
497return Response.FromValue(value, message.Response);
500throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleDefinitionsRestClient.cs (40)
82switch (message.Response.Status)
87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
89return Response.FromValue(value, message.Response);
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
224switch (message.Response.Status)
229using var document = JsonDocument.Parse(message.Response.ContentStream);
231return Response.FromValue(value, message.Response);
234throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
285return Response.FromValue(value, message.Response);
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
320using var document = JsonDocument.Parse(message.Response.ContentStream);
322return Response.FromValue(value, message.Response);
325throw _clientDiagnostics.CreateRequestFailedException(message.Response);
368switch (message.Response.Status)
373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
375return Response.FromValue(value, message.Response);
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
401switch (message.Response.Status)
406using var document = JsonDocument.Parse(message.Response.ContentStream);
408return Response.FromValue(value, message.Response);
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452switch (message.Response.Status)
457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
459return Response.FromValue(value, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
490switch (message.Response.Status)
495using var document = JsonDocument.Parse(message.Response.ContentStream);
497return Response.FromValue(value, message.Response);
500throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Security.KeyVault.Certificates (2)
Azure.Security.KeyVault.Keys (2)
Azure.Security.KeyVault.Secrets (2)
Azure.Storage.Blobs (609)
Generated\BlobRestClient.cs (196)
163var headers = new BlobDownloadHeaders(message.Response);
164switch (message.Response.Status)
170return ResponseWithHeaders.FromValue(value, headers, message.Response);
173return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
200var headers = new BlobDownloadHeaders(message.Response);
201switch (message.Response.Status)
207return ResponseWithHeaders.FromValue(value, headers, message.Response);
210return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response);
212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
299var headers = new BlobGetPropertiesHeaders(message.Response);
300switch (message.Response.Status)
303return ResponseWithHeaders.FromValue(headers, message.Response);
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
327var headers = new BlobGetPropertiesHeaders(message.Response);
328switch (message.Response.Status)
331return ResponseWithHeaders.FromValue(headers, message.Response);
333throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415var headers = new BlobDeleteHeaders(message.Response);
416switch (message.Response.Status)
419return ResponseWithHeaders.FromValue(headers, message.Response);
421throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442var headers = new BlobDeleteHeaders(message.Response);
443switch (message.Response.Status)
446return ResponseWithHeaders.FromValue(headers, message.Response);
448throw _clientDiagnostics.CreateRequestFailedException(message.Response);
481var headers = new BlobUndeleteHeaders(message.Response);
482switch (message.Response.Status)
485return ResponseWithHeaders.FromValue(headers, message.Response);
487throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498var headers = new BlobUndeleteHeaders(message.Response);
499switch (message.Response.Status)
502return ResponseWithHeaders.FromValue(headers, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
544var headers = new BlobSetExpiryHeaders(message.Response);
545switch (message.Response.Status)
548return ResponseWithHeaders.FromValue(headers, message.Response);
550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
563var headers = new BlobSetExpiryHeaders(message.Response);
564switch (message.Response.Status)
567return ResponseWithHeaders.FromValue(headers, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
662var headers = new BlobSetHttpHeadersHeaders(message.Response);
663switch (message.Response.Status)
666return ResponseWithHeaders.FromValue(headers, message.Response);
668throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
691var headers = new BlobSetHttpHeadersHeaders(message.Response);
692switch (message.Response.Status)
695return ResponseWithHeaders.FromValue(headers, message.Response);
697throw _clientDiagnostics.CreateRequestFailedException(message.Response);
745var headers = new BlobSetImmutabilityPolicyHeaders(message.Response);
746switch (message.Response.Status)
749return ResponseWithHeaders.FromValue(headers, message.Response);
751throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
765var headers = new BlobSetImmutabilityPolicyHeaders(message.Response);
766switch (message.Response.Status)
769return ResponseWithHeaders.FromValue(headers, message.Response);
771throw _clientDiagnostics.CreateRequestFailedException(message.Response);
804var headers = new BlobDeleteImmutabilityPolicyHeaders(message.Response);
805switch (message.Response.Status)
808return ResponseWithHeaders.FromValue(headers, message.Response);
810throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
821var headers = new BlobDeleteImmutabilityPolicyHeaders(message.Response);
822switch (message.Response.Status)
825return ResponseWithHeaders.FromValue(headers, message.Response);
827throw _clientDiagnostics.CreateRequestFailedException(message.Response);
862var headers = new BlobSetLegalHoldHeaders(message.Response);
863switch (message.Response.Status)
866return ResponseWithHeaders.FromValue(headers, message.Response);
868throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
880var headers = new BlobSetLegalHoldHeaders(message.Response);
881switch (message.Response.Status)
884return ResponseWithHeaders.FromValue(headers, message.Response);
886throw _clientDiagnostics.CreateRequestFailedException(message.Response);
974var headers = new BlobSetMetadataHeaders(message.Response);
975switch (message.Response.Status)
978return ResponseWithHeaders.FromValue(headers, message.Response);
980throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1002var headers = new BlobSetMetadataHeaders(message.Response);
1003switch (message.Response.Status)
1006return ResponseWithHeaders.FromValue(headers, message.Response);
1008throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1077var headers = new BlobAcquireLeaseHeaders(message.Response);
1078switch (message.Response.Status)
1081return ResponseWithHeaders.FromValue(headers, message.Response);
1083throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1101var headers = new BlobAcquireLeaseHeaders(message.Response);
1102switch (message.Response.Status)
1105return ResponseWithHeaders.FromValue(headers, message.Response);
1107throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1174var headers = new BlobReleaseLeaseHeaders(message.Response);
1175switch (message.Response.Status)
1178return ResponseWithHeaders.FromValue(headers, message.Response);
1180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1203var headers = new BlobReleaseLeaseHeaders(message.Response);
1204switch (message.Response.Status)
1207return ResponseWithHeaders.FromValue(headers, message.Response);
1209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1276var headers = new BlobRenewLeaseHeaders(message.Response);
1277switch (message.Response.Status)
1280return ResponseWithHeaders.FromValue(headers, message.Response);
1282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1305var headers = new BlobRenewLeaseHeaders(message.Response);
1306switch (message.Response.Status)
1309return ResponseWithHeaders.FromValue(headers, message.Response);
1311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1384var headers = new BlobChangeLeaseHeaders(message.Response);
1385switch (message.Response.Status)
1388return ResponseWithHeaders.FromValue(headers, message.Response);
1390throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1418var headers = new BlobChangeLeaseHeaders(message.Response);
1419switch (message.Response.Status)
1422return ResponseWithHeaders.FromValue(headers, message.Response);
1424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1488var headers = new BlobBreakLeaseHeaders(message.Response);
1489switch (message.Response.Status)
1492return ResponseWithHeaders.FromValue(headers, message.Response);
1494throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1511var headers = new BlobBreakLeaseHeaders(message.Response);
1512switch (message.Response.Status)
1515return ResponseWithHeaders.FromValue(headers, message.Response);
1517throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1605var headers = new BlobCreateSnapshotHeaders(message.Response);
1606switch (message.Response.Status)
1609return ResponseWithHeaders.FromValue(headers, message.Response);
1611throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1633var headers = new BlobCreateSnapshotHeaders(message.Response);
1634switch (message.Response.Status)
1637return ResponseWithHeaders.FromValue(headers, message.Response);
1639throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1774var headers = new BlobStartCopyFromURLHeaders(message.Response);
1775switch (message.Response.Status)
1778return ResponseWithHeaders.FromValue(headers, message.Response);
1780throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1817var headers = new BlobStartCopyFromURLHeaders(message.Response);
1818switch (message.Response.Status)
1821return ResponseWithHeaders.FromValue(headers, message.Response);
1823throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1949var headers = new BlobCopyFromURLHeaders(message.Response);
1950switch (message.Response.Status)
1953return ResponseWithHeaders.FromValue(headers, message.Response);
1955throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1990var headers = new BlobCopyFromURLHeaders(message.Response);
1991switch (message.Response.Status)
1994return ResponseWithHeaders.FromValue(headers, message.Response);
1996throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2043var headers = new BlobAbortCopyFromURLHeaders(message.Response);
2044switch (message.Response.Status)
2047return ResponseWithHeaders.FromValue(headers, message.Response);
2049throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2068var headers = new BlobAbortCopyFromURLHeaders(message.Response);
2069switch (message.Response.Status)
2072return ResponseWithHeaders.FromValue(headers, message.Response);
2074throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2134var headers = new BlobSetTierHeaders(message.Response);
2135switch (message.Response.Status)
2139return ResponseWithHeaders.FromValue(headers, message.Response);
2141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2158var headers = new BlobSetTierHeaders(message.Response);
2159switch (message.Response.Status)
2163return ResponseWithHeaders.FromValue(headers, message.Response);
2165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2194var headers = new BlobGetAccountInfoHeaders(message.Response);
2195switch (message.Response.Status)
2198return ResponseWithHeaders.FromValue(headers, message.Response);
2200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2210var headers = new BlobGetAccountInfoHeaders(message.Response);
2211switch (message.Response.Status)
2214return ResponseWithHeaders.FromValue(headers, message.Response);
2216throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2308var headers = new BlobQueryHeaders(message.Response);
2309switch (message.Response.Status)
2315return ResponseWithHeaders.FromValue(value, headers, message.Response);
2318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2340var headers = new BlobQueryHeaders(message.Response);
2341switch (message.Response.Status)
2347return ResponseWithHeaders.FromValue(value, headers, message.Response);
2350throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2403var headers = new BlobGetTagsHeaders(message.Response);
2404switch (message.Response.Status)
2409var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
2414return ResponseWithHeaders.FromValue(value, headers, message.Response);
2417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2432var headers = new BlobGetTagsHeaders(message.Response);
2433switch (message.Response.Status)
2438var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
2443return ResponseWithHeaders.FromValue(value, headers, message.Response);
2446throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2512var headers = new BlobSetTagsHeaders(message.Response);
2513switch (message.Response.Status)
2516return ResponseWithHeaders.FromValue(headers, message.Response);
2518throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2535var headers = new BlobSetTagsHeaders(message.Response);
2536switch (message.Response.Status)
2539return ResponseWithHeaders.FromValue(headers, message.Response);
2541throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BlockBlobRestClient.cs (50)
219var headers = new BlockBlobUploadHeaders(message.Response);
220switch (message.Response.Status)
223return ResponseWithHeaders.FromValue(headers, message.Response);
225throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
267var headers = new BlockBlobUploadHeaders(message.Response);
268switch (message.Response.Status)
271return ResponseWithHeaders.FromValue(headers, message.Response);
273throw _clientDiagnostics.CreateRequestFailedException(message.Response);
446var headers = new BlockBlobPutBlobFromUrlHeaders(message.Response);
447switch (message.Response.Status)
450return ResponseWithHeaders.FromValue(headers, message.Response);
452throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498var headers = new BlockBlobPutBlobFromUrlHeaders(message.Response);
499switch (message.Response.Status)
502return ResponseWithHeaders.FromValue(headers, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
589var headers = new BlockBlobStageBlockHeaders(message.Response);
590switch (message.Response.Status)
593return ResponseWithHeaders.FromValue(headers, message.Response);
595throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
626var headers = new BlockBlobStageBlockHeaders(message.Response);
627switch (message.Response.Status)
630return ResponseWithHeaders.FromValue(headers, message.Response);
632throw _clientDiagnostics.CreateRequestFailedException(message.Response);
740var headers = new BlockBlobStageBlockFromURLHeaders(message.Response);
741switch (message.Response.Status)
744return ResponseWithHeaders.FromValue(headers, message.Response);
746throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
782var headers = new BlockBlobStageBlockFromURLHeaders(message.Response);
783switch (message.Response.Status)
786return ResponseWithHeaders.FromValue(headers, message.Response);
788throw _clientDiagnostics.CreateRequestFailedException(message.Response);
952var headers = new BlockBlobCommitBlockListHeaders(message.Response);
953switch (message.Response.Status)
956return ResponseWithHeaders.FromValue(headers, message.Response);
958throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1000var headers = new BlockBlobCommitBlockListHeaders(message.Response);
1001switch (message.Response.Status)
1004return ResponseWithHeaders.FromValue(headers, message.Response);
1006throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1056var headers = new BlockBlobGetBlockListHeaders(message.Response);
1057switch (message.Response.Status)
1062var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1067return ResponseWithHeaders.FromValue(value, headers, message.Response);
1070throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1085var headers = new BlockBlobGetBlockListHeaders(message.Response);
1086switch (message.Response.Status)
1091var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1096return ResponseWithHeaders.FromValue(value, headers, message.Response);
1099throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRestClient.cs (162)
104var headers = new ContainerCreateHeaders(message.Response);
105switch (message.Response.Status)
108return ResponseWithHeaders.FromValue(headers, message.Response);
110throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125var headers = new ContainerCreateHeaders(message.Response);
126switch (message.Response.Status)
129return ResponseWithHeaders.FromValue(headers, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
167var headers = new ContainerGetPropertiesHeaders(message.Response);
168switch (message.Response.Status)
171return ResponseWithHeaders.FromValue(headers, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
185var headers = new ContainerGetPropertiesHeaders(message.Response);
186switch (message.Response.Status)
189return ResponseWithHeaders.FromValue(headers, message.Response);
191throw _clientDiagnostics.CreateRequestFailedException(message.Response);
237var headers = new ContainerDeleteHeaders(message.Response);
238switch (message.Response.Status)
241return ResponseWithHeaders.FromValue(headers, message.Response);
243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257var headers = new ContainerDeleteHeaders(message.Response);
258switch (message.Response.Status)
261return ResponseWithHeaders.FromValue(headers, message.Response);
263throw _clientDiagnostics.CreateRequestFailedException(message.Response);
310var headers = new ContainerSetMetadataHeaders(message.Response);
311switch (message.Response.Status)
314return ResponseWithHeaders.FromValue(headers, message.Response);
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
330var headers = new ContainerSetMetadataHeaders(message.Response);
331switch (message.Response.Status)
334return ResponseWithHeaders.FromValue(headers, message.Response);
336throw _clientDiagnostics.CreateRequestFailedException(message.Response);
373var headers = new ContainerGetAccessPolicyHeaders(message.Response);
374switch (message.Response.Status)
379var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
389return ResponseWithHeaders.FromValue(value, headers, message.Response);
392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
404var headers = new ContainerGetAccessPolicyHeaders(message.Response);
405switch (message.Response.Status)
410var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
420return ResponseWithHeaders.FromValue(value, headers, message.Response);
423throw _clientDiagnostics.CreateRequestFailedException(message.Response);
488var headers = new ContainerSetAccessPolicyHeaders(message.Response);
489switch (message.Response.Status)
492return ResponseWithHeaders.FromValue(headers, message.Response);
494throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
510var headers = new ContainerSetAccessPolicyHeaders(message.Response);
511switch (message.Response.Status)
514return ResponseWithHeaders.FromValue(headers, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558var headers = new ContainerRestoreHeaders(message.Response);
559switch (message.Response.Status)
562return ResponseWithHeaders.FromValue(headers, message.Response);
564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
577var headers = new ContainerRestoreHeaders(message.Response);
578switch (message.Response.Status)
581return ResponseWithHeaders.FromValue(headers, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
628var headers = new ContainerRenameHeaders(message.Response);
629switch (message.Response.Status)
632return ResponseWithHeaders.FromValue(headers, message.Response);
634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
653var headers = new ContainerRenameHeaders(message.Response);
654switch (message.Response.Status)
657return ResponseWithHeaders.FromValue(headers, message.Response);
659throw _clientDiagnostics.CreateRequestFailedException(message.Response);
707var headers = new ContainerSubmitBatchHeaders(message.Response);
708switch (message.Response.Status)
713return ResponseWithHeaders.FromValue(value, headers, message.Response);
716throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
740var headers = new ContainerSubmitBatchHeaders(message.Response);
741switch (message.Response.Status)
746return ResponseWithHeaders.FromValue(value, headers, message.Response);
749throw _clientDiagnostics.CreateRequestFailedException(message.Response);
802var headers = new ContainerAcquireLeaseHeaders(message.Response);
803switch (message.Response.Status)
806return ResponseWithHeaders.FromValue(headers, message.Response);
808throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
823var headers = new ContainerAcquireLeaseHeaders(message.Response);
824switch (message.Response.Status)
827return ResponseWithHeaders.FromValue(headers, message.Response);
829throw _clientDiagnostics.CreateRequestFailedException(message.Response);
880var headers = new ContainerReleaseLeaseHeaders(message.Response);
881switch (message.Response.Status)
884return ResponseWithHeaders.FromValue(headers, message.Response);
886throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
906var headers = new ContainerReleaseLeaseHeaders(message.Response);
907switch (message.Response.Status)
910return ResponseWithHeaders.FromValue(headers, message.Response);
912throw _clientDiagnostics.CreateRequestFailedException(message.Response);
963var headers = new ContainerRenewLeaseHeaders(message.Response);
964switch (message.Response.Status)
967return ResponseWithHeaders.FromValue(headers, message.Response);
969throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
989var headers = new ContainerRenewLeaseHeaders(message.Response);
990switch (message.Response.Status)
993return ResponseWithHeaders.FromValue(headers, message.Response);
995throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1043var headers = new ContainerBreakLeaseHeaders(message.Response);
1044switch (message.Response.Status)
1047return ResponseWithHeaders.FromValue(headers, message.Response);
1049throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1063var headers = new ContainerBreakLeaseHeaders(message.Response);
1064switch (message.Response.Status)
1067return ResponseWithHeaders.FromValue(headers, message.Response);
1069throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1126var headers = new ContainerChangeLeaseHeaders(message.Response);
1127switch (message.Response.Status)
1130return ResponseWithHeaders.FromValue(headers, message.Response);
1132throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1157var headers = new ContainerChangeLeaseHeaders(message.Response);
1158switch (message.Response.Status)
1161return ResponseWithHeaders.FromValue(headers, message.Response);
1163throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1215var headers = new ContainerListBlobFlatSegmentHeaders(message.Response);
1216switch (message.Response.Status)
1221var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1226return ResponseWithHeaders.FromValue(value, headers, message.Response);
1229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1244var headers = new ContainerListBlobFlatSegmentHeaders(message.Response);
1245switch (message.Response.Status)
1250var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1255return ResponseWithHeaders.FromValue(value, headers, message.Response);
1258throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1315var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response);
1316switch (message.Response.Status)
1321var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1326return ResponseWithHeaders.FromValue(value, headers, message.Response);
1329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1345var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response);
1346switch (message.Response.Status)
1351var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1356return ResponseWithHeaders.FromValue(value, headers, message.Response);
1359throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1386var headers = new ContainerGetAccountInfoHeaders(message.Response);
1387switch (message.Response.Status)
1390return ResponseWithHeaders.FromValue(headers, message.Response);
1392throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1402var headers = new ContainerGetAccountInfoHeaders(message.Response);
1403switch (message.Response.Status)
1406return ResponseWithHeaders.FromValue(headers, message.Response);
1408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1444var headers = new ContainerListBlobFlatSegmentHeaders(message.Response);
1445switch (message.Response.Status)
1450var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1455return ResponseWithHeaders.FromValue(value, headers, message.Response);
1458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1480var headers = new ContainerListBlobFlatSegmentHeaders(message.Response);
1481switch (message.Response.Status)
1486var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1491return ResponseWithHeaders.FromValue(value, headers, message.Response);
1494throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1531var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response);
1532switch (message.Response.Status)
1537var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1542return ResponseWithHeaders.FromValue(value, headers, message.Response);
1545throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1568var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response);
1569switch (message.Response.Status)
1574var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1579return ResponseWithHeaders.FromValue(value, headers, message.Response);
1582throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PageBlobRestClient.cs (76)
211var headers = new PageBlobCreateHeaders(message.Response);
212switch (message.Response.Status)
215return ResponseWithHeaders.FromValue(headers, message.Response);
217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
253var headers = new PageBlobCreateHeaders(message.Response);
254switch (message.Response.Status)
257return ResponseWithHeaders.FromValue(headers, message.Response);
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384var headers = new PageBlobUploadPagesHeaders(message.Response);
385switch (message.Response.Status)
388return ResponseWithHeaders.FromValue(headers, message.Response);
390throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
425var headers = new PageBlobUploadPagesHeaders(message.Response);
426switch (message.Response.Status)
429return ResponseWithHeaders.FromValue(headers, message.Response);
431throw _clientDiagnostics.CreateRequestFailedException(message.Response);
536var headers = new PageBlobClearPagesHeaders(message.Response);
537switch (message.Response.Status)
540return ResponseWithHeaders.FromValue(headers, message.Response);
542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
568var headers = new PageBlobClearPagesHeaders(message.Response);
569switch (message.Response.Status)
572return ResponseWithHeaders.FromValue(headers, message.Response);
574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
724var headers = new PageBlobUploadPagesFromURLHeaders(message.Response);
725switch (message.Response.Status)
728return ResponseWithHeaders.FromValue(headers, message.Response);
730throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
778var headers = new PageBlobUploadPagesFromURLHeaders(message.Response);
779switch (message.Response.Status)
782return ResponseWithHeaders.FromValue(headers, message.Response);
784throw _clientDiagnostics.CreateRequestFailedException(message.Response);
857var headers = new PageBlobGetPageRangesHeaders(message.Response);
858switch (message.Response.Status)
863var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
868return ResponseWithHeaders.FromValue(value, headers, message.Response);
871throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
890var headers = new PageBlobGetPageRangesHeaders(message.Response);
891switch (message.Response.Status)
896var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
901return ResponseWithHeaders.FromValue(value, headers, message.Response);
904throw _clientDiagnostics.CreateRequestFailedException(message.Response);
987var headers = new PageBlobGetPageRangesDiffHeaders(message.Response);
988switch (message.Response.Status)
993var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
998return ResponseWithHeaders.FromValue(value, headers, message.Response);
1001throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1022var headers = new PageBlobGetPageRangesDiffHeaders(message.Response);
1023switch (message.Response.Status)
1028var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1033return ResponseWithHeaders.FromValue(value, headers, message.Response);
1036throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1121var headers = new PageBlobResizeHeaders(message.Response);
1122switch (message.Response.Status)
1125return ResponseWithHeaders.FromValue(headers, message.Response);
1127throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1149var headers = new PageBlobResizeHeaders(message.Response);
1150switch (message.Response.Status)
1153return ResponseWithHeaders.FromValue(headers, message.Response);
1155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1225var headers = new PageBlobUpdateSequenceNumberHeaders(message.Response);
1226switch (message.Response.Status)
1229return ResponseWithHeaders.FromValue(headers, message.Response);
1231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1250var headers = new PageBlobUpdateSequenceNumberHeaders(message.Response);
1251switch (message.Response.Status)
1254return ResponseWithHeaders.FromValue(headers, message.Response);
1256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1322var headers = new PageBlobCopyIncrementalHeaders(message.Response);
1323switch (message.Response.Status)
1326return ResponseWithHeaders.FromValue(headers, message.Response);
1328throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1351var headers = new PageBlobCopyIncrementalHeaders(message.Response);
1352switch (message.Response.Status)
1355return ResponseWithHeaders.FromValue(headers, message.Response);
1357throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (84)
88var headers = new ServiceSetPropertiesHeaders(message.Response);
89switch (message.Response.Status)
92return ResponseWithHeaders.FromValue(headers, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112var headers = new ServiceSetPropertiesHeaders(message.Response);
113switch (message.Response.Status)
116return ResponseWithHeaders.FromValue(headers, message.Response);
118throw _clientDiagnostics.CreateRequestFailedException(message.Response);
149var headers = new ServiceGetPropertiesHeaders(message.Response);
150switch (message.Response.Status)
155var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
160return ResponseWithHeaders.FromValue(value, headers, message.Response);
163throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
174var headers = new ServiceGetPropertiesHeaders(message.Response);
175switch (message.Response.Status)
180var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
185return ResponseWithHeaders.FromValue(value, headers, message.Response);
188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219var headers = new ServiceGetStatisticsHeaders(message.Response);
220switch (message.Response.Status)
225var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
230return ResponseWithHeaders.FromValue(value, headers, message.Response);
233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
244var headers = new ServiceGetStatisticsHeaders(message.Response);
245switch (message.Response.Status)
250var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
255return ResponseWithHeaders.FromValue(value, headers, message.Response);
258throw _clientDiagnostics.CreateRequestFailedException(message.Response);
308var headers = new ServiceListContainersSegmentHeaders(message.Response);
309switch (message.Response.Status)
314var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
319return ResponseWithHeaders.FromValue(value, headers, message.Response);
322throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
337var headers = new ServiceListContainersSegmentHeaders(message.Response);
338switch (message.Response.Status)
343var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
348return ResponseWithHeaders.FromValue(value, headers, message.Response);
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393var headers = new ServiceGetUserDelegationKeyHeaders(message.Response);
394switch (message.Response.Status)
399var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
404return ResponseWithHeaders.FromValue(value, headers, message.Response);
407throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
425var headers = new ServiceGetUserDelegationKeyHeaders(message.Response);
426switch (message.Response.Status)
431var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
436return ResponseWithHeaders.FromValue(value, headers, message.Response);
439throw _clientDiagnostics.CreateRequestFailedException(message.Response);
465var headers = new ServiceGetAccountInfoHeaders(message.Response);
466switch (message.Response.Status)
469return ResponseWithHeaders.FromValue(headers, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
481var headers = new ServiceGetAccountInfoHeaders(message.Response);
482switch (message.Response.Status)
485return ResponseWithHeaders.FromValue(headers, message.Response);
487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
533var headers = new ServiceSubmitBatchHeaders(message.Response);
534switch (message.Response.Status)
539return ResponseWithHeaders.FromValue(value, headers, message.Response);
542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
566var headers = new ServiceSubmitBatchHeaders(message.Response);
567switch (message.Response.Status)
572return ResponseWithHeaders.FromValue(value, headers, message.Response);
575throw _clientDiagnostics.CreateRequestFailedException(message.Response);
620var headers = new ServiceFilterBlobsHeaders(message.Response);
621switch (message.Response.Status)
626var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
631return ResponseWithHeaders.FromValue(value, headers, message.Response);
634throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
648var headers = new ServiceFilterBlobsHeaders(message.Response);
649switch (message.Response.Status)
654var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
659return ResponseWithHeaders.FromValue(value, headers, message.Response);
662throw _clientDiagnostics.CreateRequestFailedException(message.Response);
698var headers = new ServiceListContainersSegmentHeaders(message.Response);
699switch (message.Response.Status)
704var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
709return ResponseWithHeaders.FromValue(value, headers, message.Response);
712throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
734var headers = new ServiceListContainersSegmentHeaders(message.Response);
735switch (message.Response.Status)
740var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
745return ResponseWithHeaders.FromValue(value, headers, message.Response);
748throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Storage.Blobs.Batch (34)
Azure.Storage.Blobs.Batch.Samples.Tests (7)
Azure.Storage.Blobs.Batch.Tests (7)
Azure.Storage.Blobs.ChangeFeed.Samples.Tests (7)
Azure.Storage.Blobs.ChangeFeed.Tests (7)
Azure.Storage.Blobs.Perf (2)
Azure.Storage.Blobs.Samples.Tests (7)
Azure.Storage.Blobs.Tests (7)
Azure.Storage.Common (5)
Azure.Storage.Common.Samples.Tests (7)
Azure.Storage.Common.Tests (7)
Azure.Storage.Files.DataLake (183)
Generated\FileSystemRestClient.cs (62)
96var headers = new FileSystemCreateHeaders(message.Response);
97switch (message.Response.Status)
100return ResponseWithHeaders.FromValue(headers, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114var headers = new FileSystemCreateHeaders(message.Response);
115switch (message.Response.Status)
118return ResponseWithHeaders.FromValue(headers, message.Response);
120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
166var headers = new FileSystemSetPropertiesHeaders(message.Response);
167switch (message.Response.Status)
170return ResponseWithHeaders.FromValue(headers, message.Response);
172throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
186var headers = new FileSystemSetPropertiesHeaders(message.Response);
187switch (message.Response.Status)
190return ResponseWithHeaders.FromValue(headers, message.Response);
192throw _clientDiagnostics.CreateRequestFailedException(message.Response);
223var headers = new FileSystemGetPropertiesHeaders(message.Response);
224switch (message.Response.Status)
227return ResponseWithHeaders.FromValue(headers, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240var headers = new FileSystemGetPropertiesHeaders(message.Response);
241switch (message.Response.Status)
244return ResponseWithHeaders.FromValue(headers, message.Response);
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287var headers = new FileSystemDeleteHeaders(message.Response);
288switch (message.Response.Status)
291return ResponseWithHeaders.FromValue(headers, message.Response);
293throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306var headers = new FileSystemDeleteHeaders(message.Response);
307switch (message.Response.Status)
310return ResponseWithHeaders.FromValue(headers, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
365var headers = new FileSystemListPathsHeaders(message.Response);
366switch (message.Response.Status)
371using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
373return ResponseWithHeaders.FromValue(value, headers, message.Response);
376throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
392var headers = new FileSystemListPathsHeaders(message.Response);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return ResponseWithHeaders.FromValue(value, headers, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response);
462switch (message.Response.Status)
467var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
472return ResponseWithHeaders.FromValue(value, headers, message.Response);
475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
491var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response);
492switch (message.Response.Status)
497var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
502return ResponseWithHeaders.FromValue(value, headers, message.Response);
505throw _clientDiagnostics.CreateRequestFailedException(message.Response);
542var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response);
543switch (message.Response.Status)
548var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
553return ResponseWithHeaders.FromValue(value, headers, message.Response);
556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response);
580switch (message.Response.Status)
585var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
590return ResponseWithHeaders.FromValue(value, headers, message.Response);
593throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PathRestClient.cs (102)
201var headers = new PathCreateHeaders(message.Response);
202switch (message.Response.Status)
205return ResponseWithHeaders.FromValue(headers, message.Response);
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240var headers = new PathCreateHeaders(message.Response);
241switch (message.Response.Status)
244return ResponseWithHeaders.FromValue(headers, message.Response);
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
406var headers = new PathUpdateHeaders(message.Response);
407switch (message.Response.Status)
412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
414return ResponseWithHeaders.FromValue(value, headers, message.Response);
417return ResponseWithHeaders.FromValue((SetAccessControlRecursiveResponse)null, headers, message.Response);
419throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
462var headers = new PathUpdateHeaders(message.Response);
463switch (message.Response.Status)
468using var document = JsonDocument.Parse(message.Response.ContentStream);
470return ResponseWithHeaders.FromValue(value, headers, message.Response);
473return ResponseWithHeaders.FromValue((SetAccessControlRecursiveResponse)null, headers, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
549var headers = new PathLeaseHeaders(message.Response);
550switch (message.Response.Status)
555return ResponseWithHeaders.FromValue(headers, message.Response);
557throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
577var headers = new PathLeaseHeaders(message.Response);
578switch (message.Response.Status)
583return ResponseWithHeaders.FromValue(headers, message.Response);
585throw _clientDiagnostics.CreateRequestFailedException(message.Response);
653var headers = new PathReadHeaders(message.Response);
654switch (message.Response.Status)
660return ResponseWithHeaders.FromValue(value, headers, message.Response);
663throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
681var headers = new PathReadHeaders(message.Response);
682switch (message.Response.Status)
688return ResponseWithHeaders.FromValue(value, headers, message.Response);
691throw _clientDiagnostics.CreateRequestFailedException(message.Response);
758var headers = new PathGetPropertiesHeaders(message.Response);
759switch (message.Response.Status)
762return ResponseWithHeaders.FromValue(headers, message.Response);
764throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
782var headers = new PathGetPropertiesHeaders(message.Response);
783switch (message.Response.Status)
786return ResponseWithHeaders.FromValue(headers, message.Response);
788throw _clientDiagnostics.CreateRequestFailedException(message.Response);
855var headers = new PathDeleteHeaders(message.Response);
856switch (message.Response.Status)
859return ResponseWithHeaders.FromValue(headers, message.Response);
861throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
879var headers = new PathDeleteHeaders(message.Response);
880switch (message.Response.Status)
883return ResponseWithHeaders.FromValue(headers, message.Response);
885throw _clientDiagnostics.CreateRequestFailedException(message.Response);
963var headers = new PathSetAccessControlHeaders(message.Response);
964switch (message.Response.Status)
967return ResponseWithHeaders.FromValue(headers, message.Response);
969throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
989var headers = new PathSetAccessControlHeaders(message.Response);
990switch (message.Response.Status)
993return ResponseWithHeaders.FromValue(headers, message.Response);
995throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1050var headers = new PathSetAccessControlRecursiveHeaders(message.Response);
1051switch (message.Response.Status)
1056using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1058return ResponseWithHeaders.FromValue(value, headers, message.Response);
1061throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1077var headers = new PathSetAccessControlRecursiveHeaders(message.Response);
1078switch (message.Response.Status)
1083using var document = JsonDocument.Parse(message.Response.ContentStream);
1085return ResponseWithHeaders.FromValue(value, headers, message.Response);
1088throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1192var headers = new PathFlushDataHeaders(message.Response);
1193switch (message.Response.Status)
1196return ResponseWithHeaders.FromValue(headers, message.Response);
1198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1224var headers = new PathFlushDataHeaders(message.Response);
1225switch (message.Response.Status)
1228return ResponseWithHeaders.FromValue(headers, message.Response);
1230throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1297var headers = new PathAppendDataHeaders(message.Response);
1298switch (message.Response.Status)
1301return ResponseWithHeaders.FromValue(headers, message.Response);
1303throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1326var headers = new PathAppendDataHeaders(message.Response);
1327switch (message.Response.Status)
1330return ResponseWithHeaders.FromValue(headers, message.Response);
1332throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1372var headers = new PathSetExpiryHeaders(message.Response);
1373switch (message.Response.Status)
1376return ResponseWithHeaders.FromValue(headers, message.Response);
1378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1391var headers = new PathSetExpiryHeaders(message.Response);
1392switch (message.Response.Status)
1395return ResponseWithHeaders.FromValue(headers, message.Response);
1397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1435var headers = new PathUndeleteHeaders(message.Response);
1436switch (message.Response.Status)
1439return ResponseWithHeaders.FromValue(headers, message.Response);
1441throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1453var headers = new PathUndeleteHeaders(message.Response);
1454switch (message.Response.Status)
1457return ResponseWithHeaders.FromValue(headers, message.Response);
1459throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Storage.Files.DataLake.Samples.Tests (7)
Azure.Storage.Files.DataLake.Tests (7)
Azure.Storage.Files.Shares (407)
Generated\DirectoryRestClient.cs (78)
118var headers = new DirectoryCreateHeaders(message.Response);
119switch (message.Response.Status)
122return ResponseWithHeaders.FromValue(headers, message.Response);
124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
155var headers = new DirectoryCreateHeaders(message.Response);
156switch (message.Response.Status)
159return ResponseWithHeaders.FromValue(headers, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
197var headers = new DirectoryGetPropertiesHeaders(message.Response);
198switch (message.Response.Status)
201return ResponseWithHeaders.FromValue(headers, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215var headers = new DirectoryGetPropertiesHeaders(message.Response);
216switch (message.Response.Status)
219return ResponseWithHeaders.FromValue(headers, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252var headers = new DirectoryDeleteHeaders(message.Response);
253switch (message.Response.Status)
256return ResponseWithHeaders.FromValue(headers, message.Response);
258throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
269var headers = new DirectoryDeleteHeaders(message.Response);
270switch (message.Response.Status)
273return ResponseWithHeaders.FromValue(headers, message.Response);
275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
337var headers = new DirectorySetPropertiesHeaders(message.Response);
338switch (message.Response.Status)
341return ResponseWithHeaders.FromValue(headers, message.Response);
343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
373var headers = new DirectorySetPropertiesHeaders(message.Response);
374switch (message.Response.Status)
377return ResponseWithHeaders.FromValue(headers, message.Response);
379throw _clientDiagnostics.CreateRequestFailedException(message.Response);
416var headers = new DirectorySetMetadataHeaders(message.Response);
417switch (message.Response.Status)
420return ResponseWithHeaders.FromValue(headers, message.Response);
422throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
434var headers = new DirectorySetMetadataHeaders(message.Response);
435switch (message.Response.Status)
438return ResponseWithHeaders.FromValue(headers, message.Response);
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response);
493switch (message.Response.Status)
498var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
503return ResponseWithHeaders.FromValue(value, headers, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
521var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response);
522switch (message.Response.Status)
527var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
532return ResponseWithHeaders.FromValue(value, headers, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
586var headers = new DirectoryListHandlesHeaders(message.Response);
587switch (message.Response.Status)
592var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
597return ResponseWithHeaders.FromValue(value, headers, message.Response);
600throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
615var headers = new DirectoryListHandlesHeaders(message.Response);
616switch (message.Response.Status)
621var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
626return ResponseWithHeaders.FromValue(value, headers, message.Response);
629throw _clientDiagnostics.CreateRequestFailedException(message.Response);
683var headers = new DirectoryForceCloseHandlesHeaders(message.Response);
684switch (message.Response.Status)
687return ResponseWithHeaders.FromValue(headers, message.Response);
689throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
710var headers = new DirectoryForceCloseHandlesHeaders(message.Response);
711switch (message.Response.Status)
714return ResponseWithHeaders.FromValue(headers, message.Response);
716throw _clientDiagnostics.CreateRequestFailedException(message.Response);
752var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response);
753switch (message.Response.Status)
758var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
763return ResponseWithHeaders.FromValue(value, headers, message.Response);
766throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
788var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response);
789switch (message.Response.Status)
794var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
799return ResponseWithHeaders.FromValue(value, headers, message.Response);
802throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FileRestClient.cs (140)
158var headers = new FileCreateHeaders(message.Response);
159switch (message.Response.Status)
162return ResponseWithHeaders.FromValue(headers, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198var headers = new FileCreateHeaders(message.Response);
199switch (message.Response.Status)
202return ResponseWithHeaders.FromValue(headers, message.Response);
204throw _clientDiagnostics.CreateRequestFailedException(message.Response);
250var headers = new FileDownloadHeaders(message.Response);
251switch (message.Response.Status)
257return ResponseWithHeaders.FromValue(value, headers, message.Response);
260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
274var headers = new FileDownloadHeaders(message.Response);
275switch (message.Response.Status)
281return ResponseWithHeaders.FromValue(value, headers, message.Response);
284throw _clientDiagnostics.CreateRequestFailedException(message.Response);
324var headers = new FileGetPropertiesHeaders(message.Response);
325switch (message.Response.Status)
328return ResponseWithHeaders.FromValue(headers, message.Response);
330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343var headers = new FileGetPropertiesHeaders(message.Response);
344switch (message.Response.Status)
347return ResponseWithHeaders.FromValue(headers, message.Response);
349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384var headers = new FileDeleteHeaders(message.Response);
385switch (message.Response.Status)
388return ResponseWithHeaders.FromValue(headers, message.Response);
390throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402var headers = new FileDeleteHeaders(message.Response);
403switch (message.Response.Status)
406return ResponseWithHeaders.FromValue(headers, message.Response);
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
504var headers = new FileSetHttpHeadersHeaders(message.Response);
505switch (message.Response.Status)
508return ResponseWithHeaders.FromValue(headers, message.Response);
510throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
543var headers = new FileSetHttpHeadersHeaders(message.Response);
544switch (message.Response.Status)
547return ResponseWithHeaders.FromValue(headers, message.Response);
549throw _clientDiagnostics.CreateRequestFailedException(message.Response);
590var headers = new FileSetMetadataHeaders(message.Response);
591switch (message.Response.Status)
594return ResponseWithHeaders.FromValue(headers, message.Response);
596throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
609var headers = new FileSetMetadataHeaders(message.Response);
610switch (message.Response.Status)
613return ResponseWithHeaders.FromValue(headers, message.Response);
615throw _clientDiagnostics.CreateRequestFailedException(message.Response);
657var headers = new FileAcquireLeaseHeaders(message.Response);
658switch (message.Response.Status)
661return ResponseWithHeaders.FromValue(headers, message.Response);
663throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
676var headers = new FileAcquireLeaseHeaders(message.Response);
677switch (message.Response.Status)
680return ResponseWithHeaders.FromValue(headers, message.Response);
682throw _clientDiagnostics.CreateRequestFailedException(message.Response);
722var headers = new FileReleaseLeaseHeaders(message.Response);
723switch (message.Response.Status)
726return ResponseWithHeaders.FromValue(headers, message.Response);
728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
746var headers = new FileReleaseLeaseHeaders(message.Response);
747switch (message.Response.Status)
750return ResponseWithHeaders.FromValue(headers, message.Response);
752throw _clientDiagnostics.CreateRequestFailedException(message.Response);
797var headers = new FileChangeLeaseHeaders(message.Response);
798switch (message.Response.Status)
801return ResponseWithHeaders.FromValue(headers, message.Response);
803throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
822var headers = new FileChangeLeaseHeaders(message.Response);
823switch (message.Response.Status)
826return ResponseWithHeaders.FromValue(headers, message.Response);
828throw _clientDiagnostics.CreateRequestFailedException(message.Response);
865var headers = new FileBreakLeaseHeaders(message.Response);
866switch (message.Response.Status)
869return ResponseWithHeaders.FromValue(headers, message.Response);
871throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
883var headers = new FileBreakLeaseHeaders(message.Response);
884switch (message.Response.Status)
887return ResponseWithHeaders.FromValue(headers, message.Response);
889throw _clientDiagnostics.CreateRequestFailedException(message.Response);
948var headers = new FileUploadRangeHeaders(message.Response);
949switch (message.Response.Status)
952return ResponseWithHeaders.FromValue(headers, message.Response);
954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
977var headers = new FileUploadRangeHeaders(message.Response);
978switch (message.Response.Status)
981return ResponseWithHeaders.FromValue(headers, message.Response);
983throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1054var headers = new FileUploadRangeFromURLHeaders(message.Response);
1055switch (message.Response.Status)
1058return ResponseWithHeaders.FromValue(headers, message.Response);
1060throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1088var headers = new FileUploadRangeFromURLHeaders(message.Response);
1089switch (message.Response.Status)
1092return ResponseWithHeaders.FromValue(headers, message.Response);
1094throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1145var headers = new FileGetRangeListHeaders(message.Response);
1146switch (message.Response.Status)
1151var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1156return ResponseWithHeaders.FromValue(value, headers, message.Response);
1159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1174var headers = new FileGetRangeListHeaders(message.Response);
1175switch (message.Response.Status)
1180var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1185return ResponseWithHeaders.FromValue(value, headers, message.Response);
1188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1271var headers = new FileStartCopyHeaders(message.Response);
1272switch (message.Response.Status)
1275return ResponseWithHeaders.FromValue(headers, message.Response);
1277throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1300var headers = new FileStartCopyHeaders(message.Response);
1301switch (message.Response.Status)
1304return ResponseWithHeaders.FromValue(headers, message.Response);
1306throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1351var headers = new FileAbortCopyHeaders(message.Response);
1352switch (message.Response.Status)
1355return ResponseWithHeaders.FromValue(headers, message.Response);
1357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1376var headers = new FileAbortCopyHeaders(message.Response);
1377switch (message.Response.Status)
1380return ResponseWithHeaders.FromValue(headers, message.Response);
1382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1428var headers = new FileListHandlesHeaders(message.Response);
1429switch (message.Response.Status)
1434var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1439return ResponseWithHeaders.FromValue(value, headers, message.Response);
1442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1456var headers = new FileListHandlesHeaders(message.Response);
1457switch (message.Response.Status)
1462var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1467return ResponseWithHeaders.FromValue(value, headers, message.Response);
1470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1519var headers = new FileForceCloseHandlesHeaders(message.Response);
1520switch (message.Response.Status)
1523return ResponseWithHeaders.FromValue(headers, message.Response);
1525throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1545var headers = new FileForceCloseHandlesHeaders(message.Response);
1546switch (message.Response.Status)
1549return ResponseWithHeaders.FromValue(headers, message.Response);
1551throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (38)
87var headers = new ServiceSetPropertiesHeaders(message.Response);
88switch (message.Response.Status)
91return ResponseWithHeaders.FromValue(headers, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111var headers = new ServiceSetPropertiesHeaders(message.Response);
112switch (message.Response.Status)
115return ResponseWithHeaders.FromValue(headers, message.Response);
117throw _clientDiagnostics.CreateRequestFailedException(message.Response);
148var headers = new ServiceGetPropertiesHeaders(message.Response);
149switch (message.Response.Status)
154var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
159return ResponseWithHeaders.FromValue(value, headers, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173var headers = new ServiceGetPropertiesHeaders(message.Response);
174switch (message.Response.Status)
179var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
184return ResponseWithHeaders.FromValue(value, headers, message.Response);
187throw _clientDiagnostics.CreateRequestFailedException(message.Response);
237var headers = new ServiceListSharesSegmentHeaders(message.Response);
238switch (message.Response.Status)
243var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
248return ResponseWithHeaders.FromValue(value, headers, message.Response);
251throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
266var headers = new ServiceListSharesSegmentHeaders(message.Response);
267switch (message.Response.Status)
272var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
277return ResponseWithHeaders.FromValue(value, headers, message.Response);
280throw _clientDiagnostics.CreateRequestFailedException(message.Response);
316var headers = new ServiceListSharesSegmentHeaders(message.Response);
317switch (message.Response.Status)
322var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
327return ResponseWithHeaders.FromValue(value, headers, message.Response);
330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
352var headers = new ServiceListSharesSegmentHeaders(message.Response);
353switch (message.Response.Status)
358var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
363return ResponseWithHeaders.FromValue(value, headers, message.Response);
366throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ShareRestClient.cs (142)
109var headers = new ShareCreateHeaders(message.Response);
110switch (message.Response.Status)
113return ResponseWithHeaders.FromValue(headers, message.Response);
115throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131var headers = new ShareCreateHeaders(message.Response);
132switch (message.Response.Status)
135return ResponseWithHeaders.FromValue(headers, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
178var headers = new ShareGetPropertiesHeaders(message.Response);
179switch (message.Response.Status)
182return ResponseWithHeaders.FromValue(headers, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197var headers = new ShareGetPropertiesHeaders(message.Response);
198switch (message.Response.Status)
201return ResponseWithHeaders.FromValue(headers, message.Response);
203throw _clientDiagnostics.CreateRequestFailedException(message.Response);
249var headers = new ShareDeleteHeaders(message.Response);
250switch (message.Response.Status)
253return ResponseWithHeaders.FromValue(headers, message.Response);
255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
269var headers = new ShareDeleteHeaders(message.Response);
270switch (message.Response.Status)
273return ResponseWithHeaders.FromValue(headers, message.Response);
275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
323var headers = new ShareAcquireLeaseHeaders(message.Response);
324switch (message.Response.Status)
327return ResponseWithHeaders.FromValue(headers, message.Response);
329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343var headers = new ShareAcquireLeaseHeaders(message.Response);
344switch (message.Response.Status)
347return ResponseWithHeaders.FromValue(headers, message.Response);
349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
395var headers = new ShareReleaseLeaseHeaders(message.Response);
396switch (message.Response.Status)
399return ResponseWithHeaders.FromValue(headers, message.Response);
401throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
420var headers = new ShareReleaseLeaseHeaders(message.Response);
421switch (message.Response.Status)
424return ResponseWithHeaders.FromValue(headers, message.Response);
426throw _clientDiagnostics.CreateRequestFailedException(message.Response);
477var headers = new ShareChangeLeaseHeaders(message.Response);
478switch (message.Response.Status)
481return ResponseWithHeaders.FromValue(headers, message.Response);
483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503var headers = new ShareChangeLeaseHeaders(message.Response);
504switch (message.Response.Status)
507return ResponseWithHeaders.FromValue(headers, message.Response);
509throw _clientDiagnostics.CreateRequestFailedException(message.Response);
555var headers = new ShareRenewLeaseHeaders(message.Response);
556switch (message.Response.Status)
559return ResponseWithHeaders.FromValue(headers, message.Response);
561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580var headers = new ShareRenewLeaseHeaders(message.Response);
581switch (message.Response.Status)
584return ResponseWithHeaders.FromValue(headers, message.Response);
586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
634var headers = new ShareBreakLeaseHeaders(message.Response);
635switch (message.Response.Status)
638return ResponseWithHeaders.FromValue(headers, message.Response);
640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
654var headers = new ShareBreakLeaseHeaders(message.Response);
655switch (message.Response.Status)
658return ResponseWithHeaders.FromValue(headers, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
697var headers = new ShareCreateSnapshotHeaders(message.Response);
698switch (message.Response.Status)
701return ResponseWithHeaders.FromValue(headers, message.Response);
703throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
715var headers = new ShareCreateSnapshotHeaders(message.Response);
716switch (message.Response.Status)
719return ResponseWithHeaders.FromValue(headers, message.Response);
721throw _clientDiagnostics.CreateRequestFailedException(message.Response);
764var headers = new ShareCreatePermissionHeaders(message.Response);
765switch (message.Response.Status)
768return ResponseWithHeaders.FromValue(headers, message.Response);
770throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
788var headers = new ShareCreatePermissionHeaders(message.Response);
789switch (message.Response.Status)
792return ResponseWithHeaders.FromValue(headers, message.Response);
794throw _clientDiagnostics.CreateRequestFailedException(message.Response);
834var headers = new ShareGetPermissionHeaders(message.Response);
835switch (message.Response.Status)
840using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
842return ResponseWithHeaders.FromValue(value, headers, message.Response);
845throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
863var headers = new ShareGetPermissionHeaders(message.Response);
864switch (message.Response.Status)
869using var document = JsonDocument.Parse(message.Response.ContentStream);
871return ResponseWithHeaders.FromValue(value, headers, message.Response);
874throw _clientDiagnostics.CreateRequestFailedException(message.Response);
926var headers = new ShareSetPropertiesHeaders(message.Response);
927switch (message.Response.Status)
930return ResponseWithHeaders.FromValue(headers, message.Response);
932throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
947var headers = new ShareSetPropertiesHeaders(message.Response);
948switch (message.Response.Status)
951return ResponseWithHeaders.FromValue(headers, message.Response);
953throw _clientDiagnostics.CreateRequestFailedException(message.Response);
995var headers = new ShareSetMetadataHeaders(message.Response);
996switch (message.Response.Status)
999return ResponseWithHeaders.FromValue(headers, message.Response);
1001throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1014var headers = new ShareSetMetadataHeaders(message.Response);
1015switch (message.Response.Status)
1018return ResponseWithHeaders.FromValue(headers, message.Response);
1020throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1057var headers = new ShareGetAccessPolicyHeaders(message.Response);
1058switch (message.Response.Status)
1063var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1073return ResponseWithHeaders.FromValue(value, headers, message.Response);
1076throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1088var headers = new ShareGetAccessPolicyHeaders(message.Response);
1089switch (message.Response.Status)
1094var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1104return ResponseWithHeaders.FromValue(value, headers, message.Response);
1107throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1157var headers = new ShareSetAccessPolicyHeaders(message.Response);
1158switch (message.Response.Status)
1161return ResponseWithHeaders.FromValue(headers, message.Response);
1163throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1176var headers = new ShareSetAccessPolicyHeaders(message.Response);
1177switch (message.Response.Status)
1180return ResponseWithHeaders.FromValue(headers, message.Response);
1182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1219var headers = new ShareGetStatisticsHeaders(message.Response);
1220switch (message.Response.Status)
1225var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1230return ResponseWithHeaders.FromValue(value, headers, message.Response);
1233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1245var headers = new ShareGetStatisticsHeaders(message.Response);
1246switch (message.Response.Status)
1251var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1256return ResponseWithHeaders.FromValue(value, headers, message.Response);
1259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1301var headers = new ShareRestoreHeaders(message.Response);
1302switch (message.Response.Status)
1305return ResponseWithHeaders.FromValue(headers, message.Response);
1307throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1320var headers = new ShareRestoreHeaders(message.Response);
1321switch (message.Response.Status)
1324return ResponseWithHeaders.FromValue(headers, message.Response);
1326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Storage.Files.Shares.Samples.Tests (7)
Azure.Storage.Files.Shares.Tests (7)
Azure.Storage.Queues (161)
Generated\MessagesRestClient.cs (38)
93var headers = new MessagesDequeueHeaders(message.Response);
94switch (message.Response.Status)
99var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
109return ResponseWithHeaders.FromValue(value, headers, message.Response);
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125var headers = new MessagesDequeueHeaders(message.Response);
126switch (message.Response.Status)
131var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
141return ResponseWithHeaders.FromValue(value, headers, message.Response);
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175var headers = new MessagesClearHeaders(message.Response);
176switch (message.Response.Status)
179return ResponseWithHeaders.FromValue(headers, message.Response);
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192var headers = new MessagesClearHeaders(message.Response);
193switch (message.Response.Status)
196return ResponseWithHeaders.FromValue(headers, message.Response);
198throw _clientDiagnostics.CreateRequestFailedException(message.Response);
250var headers = new MessagesEnqueueHeaders(message.Response);
251switch (message.Response.Status)
256var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
266return ResponseWithHeaders.FromValue(value, headers, message.Response);
269throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
289var headers = new MessagesEnqueueHeaders(message.Response);
290switch (message.Response.Status)
295var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
305return ResponseWithHeaders.FromValue(value, headers, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345var headers = new MessagesPeekHeaders(message.Response);
346switch (message.Response.Status)
351var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
361return ResponseWithHeaders.FromValue(value, headers, message.Response);
364throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
376var headers = new MessagesPeekHeaders(message.Response);
377switch (message.Response.Status)
382var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
392return ResponseWithHeaders.FromValue(value, headers, message.Response);
395throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueueRestClient.cs (50)
87var headers = new QueueCreateHeaders(message.Response);
88switch (message.Response.Status)
92return ResponseWithHeaders.FromValue(headers, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
106var headers = new QueueCreateHeaders(message.Response);
107switch (message.Response.Status)
111return ResponseWithHeaders.FromValue(headers, message.Response);
113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
143var headers = new QueueDeleteHeaders(message.Response);
144switch (message.Response.Status)
147return ResponseWithHeaders.FromValue(headers, message.Response);
149throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160var headers = new QueueDeleteHeaders(message.Response);
161switch (message.Response.Status)
164return ResponseWithHeaders.FromValue(headers, message.Response);
166throw _clientDiagnostics.CreateRequestFailedException(message.Response);
197var headers = new QueueGetPropertiesHeaders(message.Response);
198switch (message.Response.Status)
201return ResponseWithHeaders.FromValue(headers, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214var headers = new QueueGetPropertiesHeaders(message.Response);
215switch (message.Response.Status)
218return ResponseWithHeaders.FromValue(headers, message.Response);
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
256var headers = new QueueSetMetadataHeaders(message.Response);
257switch (message.Response.Status)
260return ResponseWithHeaders.FromValue(headers, message.Response);
262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
274var headers = new QueueSetMetadataHeaders(message.Response);
275switch (message.Response.Status)
278return ResponseWithHeaders.FromValue(headers, message.Response);
280throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311var headers = new QueueGetAccessPolicyHeaders(message.Response);
312switch (message.Response.Status)
317var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
327return ResponseWithHeaders.FromValue(value, headers, message.Response);
330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
341var headers = new QueueGetAccessPolicyHeaders(message.Response);
342switch (message.Response.Status)
347var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
357return ResponseWithHeaders.FromValue(value, headers, message.Response);
360throw _clientDiagnostics.CreateRequestFailedException(message.Response);
404var headers = new QueueSetAccessPolicyHeaders(message.Response);
405switch (message.Response.Status)
408return ResponseWithHeaders.FromValue(headers, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
422var headers = new QueueSetAccessPolicyHeaders(message.Response);
423switch (message.Response.Status)
426return ResponseWithHeaders.FromValue(headers, message.Response);
428throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (48)
87var headers = new ServiceSetPropertiesHeaders(message.Response);
88switch (message.Response.Status)
91return ResponseWithHeaders.FromValue(headers, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111var headers = new ServiceSetPropertiesHeaders(message.Response);
112switch (message.Response.Status)
115return ResponseWithHeaders.FromValue(headers, message.Response);
117throw _clientDiagnostics.CreateRequestFailedException(message.Response);
148var headers = new ServiceGetPropertiesHeaders(message.Response);
149switch (message.Response.Status)
154var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
159return ResponseWithHeaders.FromValue(value, headers, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173var headers = new ServiceGetPropertiesHeaders(message.Response);
174switch (message.Response.Status)
179var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
184return ResponseWithHeaders.FromValue(value, headers, message.Response);
187throw _clientDiagnostics.CreateRequestFailedException(message.Response);
218var headers = new ServiceGetStatisticsHeaders(message.Response);
219switch (message.Response.Status)
224var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
229return ResponseWithHeaders.FromValue(value, headers, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243var headers = new ServiceGetStatisticsHeaders(message.Response);
244switch (message.Response.Status)
249var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
254return ResponseWithHeaders.FromValue(value, headers, message.Response);
257throw _clientDiagnostics.CreateRequestFailedException(message.Response);
307var headers = new ServiceListQueuesSegmentHeaders(message.Response);
308switch (message.Response.Status)
313var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
318return ResponseWithHeaders.FromValue(value, headers, message.Response);
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
336var headers = new ServiceListQueuesSegmentHeaders(message.Response);
337switch (message.Response.Status)
342var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
347return ResponseWithHeaders.FromValue(value, headers, message.Response);
350throw _clientDiagnostics.CreateRequestFailedException(message.Response);
386var headers = new ServiceListQueuesSegmentHeaders(message.Response);
387switch (message.Response.Status)
392var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
397return ResponseWithHeaders.FromValue(value, headers, message.Response);
400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
422var headers = new ServiceListQueuesSegmentHeaders(message.Response);
423switch (message.Response.Status)
428var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
433return ResponseWithHeaders.FromValue(value, headers, message.Response);
436throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Storage.Queues.Samples.Tests (7)
Azure.Storage.Queues.Tests (7)
Azure.Template (10)